diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-09-29 09:27:22 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-11-23 09:58:30 +0100 |
commit | 70bc53b473435f43dcf7d91304e28dd6e0ffda14 (patch) | |
tree | a660273e56aea7b724693c61aa44e78cd9a7d526 /arch/m68k/mac/psc.c | |
parent | Linux 4.4-rc2 (diff) | |
download | linux-70bc53b473435f43dcf7d91304e28dd6e0ffda14.tar.xz linux-70bc53b473435f43dcf7d91304e28dd6e0ffda14.zip |
m68k/mac: Kill psc_present
The presence of the Apple Peripheral System Controller (PSC) can be
tested for by just checking its base address pointer.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mac/psc.c')
-rw-r--r-- | arch/m68k/mac/psc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/m68k/mac/psc.c b/arch/m68k/mac/psc.c index 2290c0cae48b..cb2b1a3a2b62 100644 --- a/arch/m68k/mac/psc.c +++ b/arch/m68k/mac/psc.c @@ -27,7 +27,6 @@ #define DEBUG_PSC -int psc_present; volatile __u8 *psc; EXPORT_SYMBOL_GPL(psc); @@ -39,7 +38,9 @@ static void psc_debug_dump(void) { int i; - if (!psc_present) return; + if (!psc) + return; + for (i = 0x30 ; i < 0x70 ; i += 0x10) { printk("PSC #%d: IFR = 0x%02X IER = 0x%02X\n", i >> 4, @@ -81,7 +82,6 @@ void __init psc_init(void) && macintosh_config->ident != MAC_MODEL_Q840) { psc = NULL; - psc_present = 0; return; } @@ -91,7 +91,6 @@ void __init psc_init(void) */ psc = (void *) PSC_BASE; - psc_present = 1; printk("PSC detected at %p\n", psc); |