Skip to content

Commit d0160bf

Browse files
mpepaulusmack
authored andcommitted
[PATCH] powerpc: Rename and export ppc64_firmware_features
We need to export ppc64_firmware_features for modules. Before we do that I think we should probably rename it to powerpc_firmware_features. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
1 parent 2f25194 commit d0160bf

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎arch/powerpc/kernel/firmware.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
*/
1515

1616
#include <linux/config.h>
17+
#include <linux/module.h>
1718

1819
#include <asm/firmware.h>
1920

20-
unsigned long ppc64_firmware_features;
21+
unsigned long powerpc_firmware_features;
22+
EXPORT_SYMBOL_GPL(powerpc_firmware_features);

‎arch/powerpc/platforms/iseries/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ static int __init iseries_probe(int platform)
680680
if (PLATFORM_ISERIES_LPAR != platform)
681681
return 0;
682682

683-
ppc64_firmware_features |= FW_FEATURE_ISERIES;
684-
ppc64_firmware_features |= FW_FEATURE_LPAR;
683+
powerpc_firmware_features |= FW_FEATURE_ISERIES;
684+
powerpc_firmware_features |= FW_FEATURE_LPAR;
685685

686686
return 1;
687687
}

‎arch/powerpc/platforms/pseries/firmware.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void __init fw_feature_init(void)
9191
continue;
9292

9393
/* we have a match */
94-
ppc64_firmware_features |=
94+
powerpc_firmware_features |=
9595
firmware_features_table[i].val;
9696
break;
9797
}

‎arch/powerpc/platforms/pseries/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static int __init pSeries_probe(int platform)
385385
*/
386386

387387
if (platform == PLATFORM_PSERIES_LPAR)
388-
ppc64_firmware_features |= FW_FEATURE_LPAR;
388+
powerpc_firmware_features |= FW_FEATURE_LPAR;
389389

390390
return 1;
391391
}

‎include/asm-powerpc/firmware.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ enum {
8282
/* This is used to identify firmware features which are available
8383
* to the kernel.
8484
*/
85-
extern unsigned long ppc64_firmware_features;
85+
extern unsigned long powerpc_firmware_features;
8686

8787
#define firmware_has_feature(feature) \
8888
((FW_FEATURE_ALWAYS & (feature)) || \
89-
(FW_FEATURE_POSSIBLE & ppc64_firmware_features & (feature)))
89+
(FW_FEATURE_POSSIBLE & powerpc_firmware_features & (feature)))
9090

9191
extern void system_reset_fwnmi(void);
9292
extern void machine_check_fwnmi(void);

0 commit comments

Comments
 (0)