Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Zang Roy-r61911 and committed by
Paul Mackerras
c3386e40 cbcdb93d

+2 -2
+2 -2
arch/powerpc/sysdev/tsi108_dev.c
··· 48 48 tsi = of_find_node_by_type(NULL, "tsi-bridge"); 49 49 if (tsi) { 50 50 unsigned int size; 51 - void *prop = get_property(tsi, "reg", &size); 51 + const void *prop = get_property(tsi, "reg", &size); 52 52 tsi108_csr_base = of_translate_address(tsi, prop); 53 53 of_node_put(tsi); 54 54 }; ··· 79 79 hw_info tsi_eth_data; 80 80 unsigned int *id; 81 81 unsigned int *phy_id; 82 - void *mac_addr; 82 + const void *mac_addr; 83 83 phandle *ph; 84 84 85 85 memset(r, 0, sizeof(r));