Commit d334942b authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] i386 mca.c: small cleanups

The patch below contains the following cleanups:
- make spinlock mca_lock static
- make struct mca_standard_resources static
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 97f014fb
...@@ -65,7 +65,7 @@ EXPORT_SYMBOL(MCA_bus); ...@@ -65,7 +65,7 @@ EXPORT_SYMBOL(MCA_bus);
* *
* Yes - Alan * Yes - Alan
*/ */
spinlock_t mca_lock = SPIN_LOCK_UNLOCKED; static spinlock_t mca_lock = SPIN_LOCK_UNLOCKED;
/* Build the status info for the adapter */ /* Build the status info for the adapter */
...@@ -122,7 +122,7 @@ static void mca_configure_adapter_status(struct mca_device *mca_dev) { ...@@ -122,7 +122,7 @@ static void mca_configure_adapter_status(struct mca_device *mca_dev) {
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
struct resource mca_standard_resources[] = { static struct resource mca_standard_resources[] = {
{ "system control port B (MCA)", 0x60, 0x60 }, { "system control port B (MCA)", 0x60, 0x60 },
{ "arbitration (MCA)", 0x90, 0x90 }, { "arbitration (MCA)", 0x90, 0x90 },
{ "card Select Feedback (MCA)", 0x91, 0x91 }, { "card Select Feedback (MCA)", 0x91, 0x91 },
......
...@@ -40,7 +40,4 @@ ...@@ -40,7 +40,4 @@
*/ */
#define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3) #define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3)
/* lock to protect access to the MCA registers */
extern spinlock_t mca_lock;
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment