ide-generic: minor fix for mips
Move ide_probe_legacy() call to ide_generic_init() so it fails early if necessary and returns the proper error value (nowadays ide_default_io_base() is used only by ide-generic). Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -87,6 +87,10 @@ static int __init ide_generic_init(void)
|
||||
unsigned long io_addr;
|
||||
int i, rc;
|
||||
|
||||
#ifdef CONFIG_MIPS
|
||||
if (!ide_probe_legacy())
|
||||
return -ENODEV;
|
||||
#endif
|
||||
printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" module "
|
||||
"parameter for probing all legacy ISA IDE ports\n");
|
||||
|
||||
|
Reference in New Issue
Block a user