diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-03 08:26:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:19 -0400 |
commit | e2eb63927bfcb54232163bfec32440246fd44457 (patch) | |
tree | 596656edeb2332b5134d8236fa50b87f2c0ece29 /arch/powerpc/sysdev/qe_lib | |
parent | ceef87782a9452eeeca774e65d7f4e06455780a3 (diff) |
[POWERPC] Rename get_property to of_get_property: arch/powerpc
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/qe_lib')
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe.c | 4 | ||||
-rw-r--r-- | arch/powerpc/sysdev/qe_lib/qe_io.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index 43f6cc9d7ea0..7f4c07543961 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c | |||
@@ -71,7 +71,7 @@ phys_addr_t get_qe_base(void) | |||
71 | qe = of_find_node_by_type(NULL, "qe"); | 71 | qe = of_find_node_by_type(NULL, "qe"); |
72 | if (qe) { | 72 | if (qe) { |
73 | unsigned int size; | 73 | unsigned int size; |
74 | const void *prop = get_property(qe, "reg", &size); | 74 | const void *prop = of_get_property(qe, "reg", &size); |
75 | qebase = of_translate_address(qe, prop); | 75 | qebase = of_translate_address(qe, prop); |
76 | of_node_put(qe); | 76 | of_node_put(qe); |
77 | }; | 77 | }; |
@@ -158,7 +158,7 @@ unsigned int get_brg_clk(void) | |||
158 | qe = of_find_node_by_type(NULL, "qe"); | 158 | qe = of_find_node_by_type(NULL, "qe"); |
159 | if (qe) { | 159 | if (qe) { |
160 | unsigned int size; | 160 | unsigned int size; |
161 | const u32 *prop = get_property(qe, "brg-frequency", &size); | 161 | const u32 *prop = of_get_property(qe, "brg-frequency", &size); |
162 | brg_clk = *prop; | 162 | brg_clk = *prop; |
163 | of_node_put(qe); | 163 | of_node_put(qe); |
164 | }; | 164 | }; |
diff --git a/arch/powerpc/sysdev/qe_lib/qe_io.c b/arch/powerpc/sysdev/qe_lib/qe_io.c index 0afe6bfe3714..e32b45bf9ff5 100644 --- a/arch/powerpc/sysdev/qe_lib/qe_io.c +++ b/arch/powerpc/sysdev/qe_lib/qe_io.c | |||
@@ -53,7 +53,7 @@ int par_io_init(struct device_node *np) | |||
53 | return ret; | 53 | return ret; |
54 | par_io = ioremap(res.start, res.end - res.start + 1); | 54 | par_io = ioremap(res.start, res.end - res.start + 1); |
55 | 55 | ||
56 | num_ports = get_property(np, "num-ports", NULL); | 56 | num_ports = of_get_property(np, "num-ports", NULL); |
57 | if (num_ports) | 57 | if (num_ports) |
58 | num_par_io_ports = *num_ports; | 58 | num_par_io_ports = *num_ports; |
59 | 59 | ||
@@ -161,7 +161,7 @@ int par_io_of_config(struct device_node *np) | |||
161 | return -1; | 161 | return -1; |
162 | } | 162 | } |
163 | 163 | ||
164 | ph = get_property(np, "pio-handle", NULL); | 164 | ph = of_get_property(np, "pio-handle", NULL); |
165 | if (ph == 0) { | 165 | if (ph == 0) { |
166 | printk(KERN_ERR "pio-handle not available \n"); | 166 | printk(KERN_ERR "pio-handle not available \n"); |
167 | return -1; | 167 | return -1; |
@@ -169,7 +169,7 @@ int par_io_of_config(struct device_node *np) | |||
169 | 169 | ||
170 | pio = of_find_node_by_phandle(*ph); | 170 | pio = of_find_node_by_phandle(*ph); |
171 | 171 | ||
172 | pio_map = get_property(pio, "pio-map", &pio_map_len); | 172 | pio_map = of_get_property(pio, "pio-map", &pio_map_len); |
173 | if (pio_map == NULL) { | 173 | if (pio_map == NULL) { |
174 | printk(KERN_ERR "pio-map is not set! \n"); | 174 | printk(KERN_ERR "pio-map is not set! \n"); |
175 | return -1; | 175 | return -1; |