i386 mca.c: small cleanups
PATCH 1/1 i386 mca.c: small cleanups
The patch below contains the following cleanups:
- make spinlock mca_lock static
- make struct mca_standard_resources static
diffstat output:
arch/i386/kernel/mca.c | 4 ++-- include/asm-i386/mca.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
include/asm-i386/mca.h renamed from include/asm-i386/mca.h.old +0 -3
@@ -40,7 +40,4 @@*/ #define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3) -/* lock to protect access to the MCA registers */ -extern spinlock_t mca_lock; -#endif
arch/i386/kernel/mca.c renamed from arch/i386/kernel/mca.c.old +2 -2
@@ -62,7 +62,7 @@* * Yes - Alan */ -spinlock_t mca_lock =SPIN_LOCK_UNLOCKED ; +static spinlock_t mca_lock =SPIN_LOCK_UNLOCKED ;/* Build the status info for the adapter */
@@ -119,7 +119,7 @@/*--------------------------------------------------------------------*/ -struct resource mca_standard_resources[] = { +static struct resource mca_standard_resources[] = { {"system control port B (MCA)" ,0x60 ,0x60 }, {"arbitration (MCA)" ,0x90 ,0x90 }, {"card Select Feedback (MCA)" ,0x91 ,0x91 },