m68k: Some input drivers do not check the platform
Some input drivers do not check whether they're actually running on the correct platform, causing multi-platform kernels to crash if they are not. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
0f734484ac
commit
eb98630ba0
@@ -691,6 +691,11 @@ static int __init hp_sdc_rtc_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#ifdef __mc68000__
|
||||
if (!MACH_IS_HP300)
|
||||
return -ENODEV;
|
||||
#endif
|
||||
|
||||
init_MUTEX(&i8042tregs);
|
||||
|
||||
if ((ret = hp_sdc_request_timer_irq(&hp_sdc_rtc_isr)))
|
||||
|
Reference in New Issue
Block a user