aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kernel/firmware.c4
-rw-r--r--arch/powerpc/platforms/iseries/setup.c4
-rw-r--r--arch/powerpc/platforms/pseries/firmware.c2
-rw-r--r--arch/powerpc/platforms/pseries/setup.c2
-rw-r--r--include/asm-powerpc/firmware.h4
5 files changed, 9 insertions, 7 deletions
diff --git a/arch/powerpc/kernel/firmware.c b/arch/powerpc/kernel/firmware.c
index 4d37a3cb80f6..0bfe9061720a 100644
--- a/arch/powerpc/kernel/firmware.c
+++ b/arch/powerpc/kernel/firmware.c
@@ -14,7 +14,9 @@
14 */ 14 */
15 15
16#include <linux/config.h> 16#include <linux/config.h>
17#include <linux/module.h>
17 18
18#include <asm/firmware.h> 19#include <asm/firmware.h>
19 20
20unsigned long ppc64_firmware_features; 21unsigned long powerpc_firmware_features;
22EXPORT_SYMBOL_GPL(powerpc_firmware_features);
diff --git a/arch/powerpc/platforms/iseries/setup.c b/arch/powerpc/platforms/iseries/setup.c
index fa4550611c11..155aa690e4bb 100644
--- a/arch/powerpc/platforms/iseries/setup.c
+++ b/arch/powerpc/platforms/iseries/setup.c
@@ -680,8 +680,8 @@ static int __init iseries_probe(int platform)
680 if (PLATFORM_ISERIES_LPAR != platform) 680 if (PLATFORM_ISERIES_LPAR != platform)
681 return 0; 681 return 0;
682 682
683 ppc64_firmware_features |= FW_FEATURE_ISERIES; 683 powerpc_firmware_features |= FW_FEATURE_ISERIES;
684 ppc64_firmware_features |= FW_FEATURE_LPAR; 684 powerpc_firmware_features |= FW_FEATURE_LPAR;
685 685
686 return 1; 686 return 1;
687} 687}
diff --git a/arch/powerpc/platforms/pseries/firmware.c b/arch/powerpc/platforms/pseries/firmware.c
index 989f4bc136cb..c01d8f0cbe6d 100644
--- a/arch/powerpc/platforms/pseries/firmware.c
+++ b/arch/powerpc/platforms/pseries/firmware.c
@@ -91,7 +91,7 @@ void __init fw_feature_init(void)
91 continue; 91 continue;
92 92
93 /* we have a match */ 93 /* we have a match */
94 ppc64_firmware_features |= 94 powerpc_firmware_features |=
95 firmware_features_table[i].val; 95 firmware_features_table[i].val;
96 break; 96 break;
97 } 97 }
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index 213bf983242f..f736234db9b2 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -385,7 +385,7 @@ static int __init pSeries_probe(int platform)
385 */ 385 */
386 386
387 if (platform == PLATFORM_PSERIES_LPAR) 387 if (platform == PLATFORM_PSERIES_LPAR)
388 ppc64_firmware_features |= FW_FEATURE_LPAR; 388 powerpc_firmware_features |= FW_FEATURE_LPAR;
389 389
390 return 1; 390 return 1;
391} 391}
diff --git a/include/asm-powerpc/firmware.h b/include/asm-powerpc/firmware.h
index 03c2fdff021b..77069df92bf8 100644
--- a/include/asm-powerpc/firmware.h
+++ b/include/asm-powerpc/firmware.h
@@ -82,11 +82,11 @@ enum {
82/* This is used to identify firmware features which are available 82/* This is used to identify firmware features which are available
83 * to the kernel. 83 * to the kernel.
84 */ 84 */
85extern unsigned long ppc64_firmware_features; 85extern unsigned long powerpc_firmware_features;
86 86
87#define firmware_has_feature(feature) \ 87#define firmware_has_feature(feature) \
88 ((FW_FEATURE_ALWAYS & (feature)) || \ 88 ((FW_FEATURE_ALWAYS & (feature)) || \
89 (FW_FEATURE_POSSIBLE & ppc64_firmware_features & (feature))) 89 (FW_FEATURE_POSSIBLE & powerpc_firmware_features & (feature)))
90 90
91extern void system_reset_fwnmi(void); 91extern void system_reset_fwnmi(void);
92extern void machine_check_fwnmi(void); 92extern void machine_check_fwnmi(void);