diff options
author | Zang Roy-r61911 <tie-fei.zang@freescale.com> | 2006-10-18 05:18:58 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-23 10:20:12 +0200 |
commit | c3386e40142e9d0c077460c2a548c4653fecaf15 (patch) | |
tree | 226d5f772e1f0b44c5e9e5572f077c75f7ef6afd | |
parent | [POWERPC] Simplify stolen time calculation (diff) | |
download | linux-c3386e40142e9d0c077460c2a548c4653fecaf15.tar.xz linux-c3386e40142e9d0c077460c2a548c4653fecaf15.zip |
[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>
-rw-r--r-- | arch/powerpc/sysdev/tsi108_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/tsi108_dev.c b/arch/powerpc/sysdev/tsi108_dev.c index 11de090eb901..97f37ef4bbbf 100644 --- a/arch/powerpc/sysdev/tsi108_dev.c +++ b/arch/powerpc/sysdev/tsi108_dev.c @@ -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); }; @@ -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)); |