summaryrefslogtreecommitdiffstats
path: root/arch/m68k/include
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-11-07 21:14:43 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-12-10 19:52:48 +0100
commitf808b8650788f78bc1e5e693712e7d7603ab26bc (patch)
treeca3ad5ef5c96a67448d499aec43215c56e4e5f7c /arch/m68k/include
parent9d7a51d509a8b28fc1217fe11842fb8bbc184c44 (diff)
downloadlinux-f808b8650788f78bc1e5e693712e7d7603ab26bc.tar.gz
linux-f808b8650788f78bc1e5e693712e7d7603ab26bc.tar.bz2
linux-f808b8650788f78bc1e5e693712e7d7603ab26bc.zip
m68k/hp300: Export hp300_ledstate
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>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r--arch/m68k/include/asm/blinken.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m68k/include/asm/blinken.h b/arch/m68k/include/asm/blinken.h
index 1a749cf7b06d..0626582a7db4 100644
--- a/arch/m68k/include/asm/blinken.h
+++ b/arch/m68k/include/asm/blinken.h
@@ -17,15 +17,15 @@
#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);
}
}