mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ide: remove needless CONFIG_BLK_DEV_HD hack from init_hwif()
request_irq() will fail if there is already another IRQ handler registered and IRQ flags are mismatched. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
f0298512c8
commit
fef39d95ea
1 changed files with 0 additions and 7 deletions
|
@ -1241,13 +1241,6 @@ static int hwif_init(ide_hwif_t *hwif)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_BLK_DEV_HD
|
||||
if (hwif->irq == HD_IRQ && hwif->io_ports[IDE_DATA_OFFSET] != HD_DATA) {
|
||||
printk("%s: CANNOT SHARE IRQ WITH OLD "
|
||||
"HARDDISK DRIVER (hd.c)\n", hwif->name);
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_BLK_DEV_HD */
|
||||
|
||||
if (register_blkdev(hwif->major, hwif->name))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue