patch-2.1.120 linux/drivers/block/ide-pmac.c
Next file: linux/drivers/block/ide.c
Previous file: linux/arch/m68k/mm/memory.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Aug 30 11:27:35 1998
- Orig file:
v2.1.119/linux/drivers/block/ide-pmac.c
- Orig date:
Thu Aug 27 19:56:29 1998
diff -u --recursive --new-file v2.1.119/linux/drivers/block/ide-pmac.c linux/drivers/block/ide-pmac.c
@@ -38,8 +38,12 @@
static int pmac_ide_build_dmatable(ide_drive_t *drive, int wr);
#endif /* CONFIG_BLK_DEV_IDEDMA_PMAC */
-__initfunc(void
-pmac_ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq))
+/*
+ * N.B. this can't be an initfunc, because the media-bay task can
+ * call ide_[un]register at any time.
+ */
+void
+pmac_ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq)
{
int i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov