aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/opti621.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/opti621.c')
-rw-r--r--drivers/ide/pci/opti621.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/ide/pci/opti621.c b/drivers/ide/pci/opti621.c
index 0ce92d323036..46e8748f507e 100644
--- a/drivers/ide/pci/opti621.c
+++ b/drivers/ide/pci/opti621.c
@@ -87,11 +87,6 @@
87#include <linux/types.h> 87#include <linux/types.h>
88#include <linux/module.h> 88#include <linux/module.h>
89#include <linux/kernel.h> 89#include <linux/kernel.h>
90#include <linux/delay.h>
91#include <linux/timer.h>
92#include <linux/mm.h>
93#include <linux/ioport.h>
94#include <linux/blkdev.h>
95#include <linux/pci.h> 90#include <linux/pci.h>
96#include <linux/hdreg.h> 91#include <linux/hdreg.h>
97#include <linux/ide.h> 92#include <linux/ide.h>
@@ -320,14 +315,18 @@ static void opti621_set_pio_mode(ide_drive_t *drive, const u8 pio)
320 spin_unlock_irqrestore(&opti621_lock, flags); 315 spin_unlock_irqrestore(&opti621_lock, flags);
321} 316}
322 317
318static void __devinit opti621_port_init_devs(ide_hwif_t *hwif)
319{
320 hwif->drives[0].drive_data = PIO_DONT_KNOW;
321 hwif->drives[1].drive_data = PIO_DONT_KNOW;
322}
323
323/* 324/*
324 * init_hwif_opti621() is called once for each hwif found at boot. 325 * init_hwif_opti621() is called once for each hwif found at boot.
325 */ 326 */
326static void __devinit init_hwif_opti621 (ide_hwif_t *hwif) 327static void __devinit init_hwif_opti621 (ide_hwif_t *hwif)
327{ 328{
328 hwif->drives[0].drive_data = PIO_DONT_KNOW; 329 hwif->port_init_devs = opti621_port_init_devs;
329 hwif->drives[1].drive_data = PIO_DONT_KNOW;
330
331 hwif->set_pio_mode = &opti621_set_pio_mode; 330 hwif->set_pio_mode = &opti621_set_pio_mode;
332} 331}
333 332