m68k/hp300: Export hp300_ledstate
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 7 Nov 2011 20:14:43 +0000 (21:14 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 10 Dec 2011 18:52:48 +0000 (19:52 +0100)
The accidental loss of CONFIG_DIO in commit
0e152d80507b75c00aac60f2ffc586360687cd52 ("m68k: reorganize Kconfig options
to improve mmu/non-mmu selections") exposed a missing symbol export in
m68k allmodconfig.  If CONFIG_HP300=y but CONFIG_HPLANCE (which is bool,
and depends on CONFIG_DIO) is not set, and CONFIG_MVME147=y and
CONFIG_MVME147_NET=m, 7990.c is compiled as a module, giving:

ERROR: "ledstate" [drivers/net/ethernet/amd/7990.ko] undefined!

Add the missing export, and rename ledstate to hp300_ledstate while we're
at it, as it's a too generic name.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/hp300/config.c
arch/m68k/include/asm/blinken.h

index 1c05a6260546482ea365e9f6ef9c2e68f065c9bd..bf16af1edacfe8fb9c91a5f19673042cf0664dd6 100644 (file)
@@ -24,7 +24,8 @@
 
 unsigned long hp300_model;
 unsigned long hp300_uart_scode = -1;
-unsigned char ledstate;
+unsigned char hp300_ledstate;
+EXPORT_SYMBOL(hp300_ledstate);
 
 static char s_hp330[] __initdata = "330";
 static char s_hp340[] __initdata = "340";
index 1a749cf7b06d6982d224232eb40602eca03347c7..0626582a7db4ab2944182c37a1439896b2249688 100644 (file)
 
 #define HP300_LEDS             0xf001ffff
 
-extern unsigned char ledstate;
+extern unsigned char hp300_ledstate;
 
 static __inline__ void blinken_leds(int on, int off)
 {
        if (MACH_IS_HP300)
        {
-               ledstate |= on;
-               ledstate &= ~off;
-               out_8(HP300_LEDS, ~ledstate);
+               hp300_ledstate |= on;
+               hp300_ledstate &= ~off;
+               out_8(HP300_LEDS, ~hp300_ledstate);
        }
 }