linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Powerpc:  Fix the warining message from the return value of function get_property
@ 2006-10-18  3:18 Zang Roy-r61911
  2006-10-27 11:51 ` [PATCH] Powerpc: Make pci_read_irq_line the default: on mpc7448hpc2 board Zang Roy-r61911
  0 siblings, 1 reply; 7+ messages in thread
From: Zang Roy-r61911 @ 2006-10-18  3:18 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev list

The following patch fixes the warning message from the return value of
function get_property().
Add const constrain for the return value of function get_property()


Signed-off-by: Roy Zang	<tie-fei.zang@freescale.com> 

--

diff --git a/arch/powerpc/sysdev/tsi108_dev.c b/arch/powerpc/sysdev/tsi108_dev.c
index 11de090..97f37ef 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(voi
 		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));

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-11-14  6:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18  3:18 [PATCH] Powerpc: Fix the warining message from the return value of function get_property Zang Roy-r61911
2006-10-27 11:51 ` [PATCH] Powerpc: Make pci_read_irq_line the default: on mpc7448hpc2 board Zang Roy-r61911
2006-10-27 14:51   ` Zang Roy-r61911
2006-11-14  5:28     ` Zang Roy-r61911
2006-11-14  5:45       ` Benjamin Herrenschmidt
2006-11-14  5:58         ` [PATCH] Powerpc: Make pci_read_irq_line the default: onmpc7448hpc2 board Zang Roy-r61911
2006-11-14  6:31       ` [PATCH - fix] Powerpc: Make pci_read_irq_line the default: on mpc7448hpc2 board Zang Roy-r61911

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).