mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
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
@@ -217,6 +217,10 @@ hil_keyb_init(void)
|
||||
return -ENOMEM;
|
||||
|
||||
#if defined(CONFIG_HP300)
|
||||
if (!MACH_IS_HP300) {
|
||||
err = -ENODEV;
|
||||
goto err1;
|
||||
}
|
||||
if (!hwreg_present((void *)(HILBASE + HIL_DATA))) {
|
||||
printk(KERN_ERR "HIL: hardware register was not found\n");
|
||||
err = -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user