Source
108
108
it8172_set_pio_mode(hwif, drive);
109
109
}
110
110
}
111
111
112
112
113
113
static const struct ide_port_ops it8172_port_ops = {
114
114
.set_pio_mode = it8172_set_pio_mode,
115
115
.set_dma_mode = it8172_set_dma_mode,
116
116
};
117
117
118
-
static const struct ide_port_info it8172_port_info __devinitconst = {
118
+
static const struct ide_port_info it8172_port_info = {
119
119
.name = DRV_NAME,
120
120
.port_ops = &it8172_port_ops,
121
121
.enablebits = { {0x41, 0x80, 0x80}, {0x00, 0x00, 0x00} },
122
122
.host_flags = IDE_HFLAG_SINGLE,
123
123
.pio_mask = ATA_PIO4 & ~ATA_PIO0,
124
124
.mwdma_mask = ATA_MWDMA2,
125
125
.udma_mask = ATA_UDMA2,
126
126
};
127
127
128
-
static int __devinit it8172_init_one(struct pci_dev *dev,
129
-
const struct pci_device_id *id)
128
+
static int it8172_init_one(struct pci_dev *dev, const struct pci_device_id *id)
130
129
{
131
130
if ((dev->class >> 8) != PCI_CLASS_STORAGE_IDE)
132
131
return -ENODEV; /* IT8172 is more than an IDE controller */
133
132
return ide_pci_init_one(dev, &it8172_port_info, NULL);
134
133
}
135
134
136
135
static struct pci_device_id it8172_pci_tbl[] = {
137
136
{ PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8172), 0 },
138
137
{ 0, },
139
138
};