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: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 f0298512
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册