mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
[POWERPC] Fix compiler warning message on get_property call
This fixes the warning message from the return value of function get_property(), by making sure that the variable that receives the value is marked as const. Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> -- Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
cbcdb93d44
commit
c3386e4014
@ -48,7 +48,7 @@ phys_addr_t get_csrbase(void)
|
|||||||
tsi = of_find_node_by_type(NULL, "tsi-bridge");
|
tsi = of_find_node_by_type(NULL, "tsi-bridge");
|
||||||
if (tsi) {
|
if (tsi) {
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
void *prop = get_property(tsi, "reg", &size);
|
const void *prop = get_property(tsi, "reg", &size);
|
||||||
tsi108_csr_base = of_translate_address(tsi, prop);
|
tsi108_csr_base = of_translate_address(tsi, prop);
|
||||||
of_node_put(tsi);
|
of_node_put(tsi);
|
||||||
};
|
};
|
||||||
@ -79,7 +79,7 @@ static int __init tsi108_eth_of_init(void)
|
|||||||
hw_info tsi_eth_data;
|
hw_info tsi_eth_data;
|
||||||
unsigned int *id;
|
unsigned int *id;
|
||||||
unsigned int *phy_id;
|
unsigned int *phy_id;
|
||||||
void *mac_addr;
|
const void *mac_addr;
|
||||||
phandle *ph;
|
phandle *ph;
|
||||||
|
|
||||||
memset(r, 0, sizeof(r));
|
memset(r, 0, sizeof(r));
|
||||||
|
Loading…
Reference in New Issue
Block a user