Skip to content

Commit

Permalink
[POWERPC] Fix compiler warning message on get_property call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zang Roy-r61911 authored and Paul Mackerras committed Oct 23, 2006
1 parent cbcdb93 commit c3386e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/tsi108_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ phys_addr_t get_csrbase(void)
tsi = of_find_node_by_type(NULL, "tsi-bridge");
if (tsi) {
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);
of_node_put(tsi);
};
Expand Down Expand Up @@ -79,7 +79,7 @@ static int __init tsi108_eth_of_init(void)
hw_info tsi_eth_data;
unsigned int *id;
unsigned int *phy_id;
void *mac_addr;
const void *mac_addr;
phandle *ph;

memset(r, 0, sizeof(r));
Expand Down

0 comments on commit c3386e4

Please sign in to comment.