diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
commit | 24a77daf3d80bddcece044e6dc3675e427eef3f3 (patch) | |
tree | 2c5e0b0bea394d6fe62c5d5857c252e83e48ac48 /arch/powerpc/kernel/rtas.c | |
parent | e389f9aec689209724105ae80a6c91fd2e747bc9 (diff) | |
parent | f900e9777fc9b65140cb9570438597bc8fae56ab (diff) |
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (255 commits)
[POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c
[POWERPC] remove kernel module option for booke wdt
[POWERPC] Avoid putting cpu node twice
[POWERPC] Spinlock initializer cleanup
[POWERPC] ppc4xx_sgdma needs dma-mapping.h
[POWERPC] arch/powerpc/sysdev/timer.c build fix
[POWERPC] get_property cleanups
[POWERPC] Remove the unused HTDMSOUND driver
[POWERPC] cell: cbe_cpufreq cleanup and crash fix
[POWERPC] Declare enable_kernel_spe in a header
[POWERPC] Add dt_xlate_addr() to bootwrapper
[POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE
[POWERPC] Don't define a custom bd_t for Xilixn Virtex based boards.
[POWERPC] Add sane defaults for Xilinx EDK generated xparameters files
[POWERPC] Add uartlite boot console driver for the zImage wrapper
[POWERPC] Stop using ppc_sys for Xilinx Virtex boards
[POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
[POWERPC] Merge common virtex header files
[POWERPC] Rework Kconfig dependancies for Xilinx Virtex ppc405 platform
[POWERPC] Clean up cpufreq Kconfig dependencies
...
Diffstat (limited to 'arch/powerpc/kernel/rtas.c')
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 9d0735a54564..214780798289 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -192,18 +192,19 @@ void rtas_progress(char *s, unsigned short hex) | |||
192 | 192 | ||
193 | if (display_width == 0) { | 193 | if (display_width == 0) { |
194 | display_width = 0x10; | 194 | display_width = 0x10; |
195 | if ((root = find_path_device("/rtas"))) { | 195 | if ((root = of_find_node_by_path("/rtas"))) { |
196 | if ((p = get_property(root, | 196 | if ((p = of_get_property(root, |
197 | "ibm,display-line-length", NULL))) | 197 | "ibm,display-line-length", NULL))) |
198 | display_width = *p; | 198 | display_width = *p; |
199 | if ((p = get_property(root, | 199 | if ((p = of_get_property(root, |
200 | "ibm,form-feed", NULL))) | 200 | "ibm,form-feed", NULL))) |
201 | form_feed = *p; | 201 | form_feed = *p; |
202 | if ((p = get_property(root, | 202 | if ((p = of_get_property(root, |
203 | "ibm,display-number-of-lines", NULL))) | 203 | "ibm,display-number-of-lines", NULL))) |
204 | display_lines = *p; | 204 | display_lines = *p; |
205 | row_width = get_property(root, | 205 | row_width = of_get_property(root, |
206 | "ibm,display-truncation-length", NULL); | 206 | "ibm,display-truncation-length", NULL); |
207 | of_node_put(root); | ||
207 | } | 208 | } |
208 | display_character = rtas_token("display-character"); | 209 | display_character = rtas_token("display-character"); |
209 | set_indicator = rtas_token("set-indicator"); | 210 | set_indicator = rtas_token("set-indicator"); |
@@ -298,7 +299,7 @@ int rtas_token(const char *service) | |||
298 | const int *tokp; | 299 | const int *tokp; |
299 | if (rtas.dev == NULL) | 300 | if (rtas.dev == NULL) |
300 | return RTAS_UNKNOWN_SERVICE; | 301 | return RTAS_UNKNOWN_SERVICE; |
301 | tokp = get_property(rtas.dev, service, NULL); | 302 | tokp = of_get_property(rtas.dev, service, NULL); |
302 | return tokp ? *tokp : RTAS_UNKNOWN_SERVICE; | 303 | return tokp ? *tokp : RTAS_UNKNOWN_SERVICE; |
303 | } | 304 | } |
304 | EXPORT_SYMBOL(rtas_token); | 305 | EXPORT_SYMBOL(rtas_token); |
@@ -832,12 +833,12 @@ void __init rtas_initialize(void) | |||
832 | if (rtas.dev) { | 833 | if (rtas.dev) { |
833 | const u32 *basep, *entryp, *sizep; | 834 | const u32 *basep, *entryp, *sizep; |
834 | 835 | ||
835 | basep = get_property(rtas.dev, "linux,rtas-base", NULL); | 836 | basep = of_get_property(rtas.dev, "linux,rtas-base", NULL); |
836 | sizep = get_property(rtas.dev, "rtas-size", NULL); | 837 | sizep = of_get_property(rtas.dev, "rtas-size", NULL); |
837 | if (basep != NULL && sizep != NULL) { | 838 | if (basep != NULL && sizep != NULL) { |
838 | rtas.base = *basep; | 839 | rtas.base = *basep; |
839 | rtas.size = *sizep; | 840 | rtas.size = *sizep; |
840 | entryp = get_property(rtas.dev, | 841 | entryp = of_get_property(rtas.dev, |
841 | "linux,rtas-entry", NULL); | 842 | "linux,rtas-entry", NULL); |
842 | if (entryp == NULL) /* Ugh */ | 843 | if (entryp == NULL) /* Ugh */ |
843 | rtas.entry = rtas.base; | 844 | rtas.entry = rtas.base; |