diff options
Diffstat (limited to 'drivers/ide/it8172.c')
-rw-r--r-- | drivers/ide/it8172.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/it8172.c b/drivers/ide/it8172.c index d5dd180c4b85..b6f674ab4fb7 100644 --- a/drivers/ide/it8172.c +++ b/drivers/ide/it8172.c | |||
@@ -115,7 +115,7 @@ static const struct ide_port_ops it8172_port_ops = { | |||
115 | .set_dma_mode = it8172_set_dma_mode, | 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 | .name = DRV_NAME, | 119 | .name = DRV_NAME, |
120 | .port_ops = &it8172_port_ops, | 120 | .port_ops = &it8172_port_ops, |
121 | .enablebits = { {0x41, 0x80, 0x80}, {0x00, 0x00, 0x00} }, | 121 | .enablebits = { {0x41, 0x80, 0x80}, {0x00, 0x00, 0x00} }, |
@@ -125,8 +125,7 @@ static const struct ide_port_info it8172_port_info __devinitconst = { | |||
125 | .udma_mask = ATA_UDMA2, | 125 | .udma_mask = ATA_UDMA2, |
126 | }; | 126 | }; |
127 | 127 | ||
128 | static int __devinit it8172_init_one(struct pci_dev *dev, | 128 | static int it8172_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
129 | const struct pci_device_id *id) | ||
130 | { | 129 | { |
131 | if ((dev->class >> 8) != PCI_CLASS_STORAGE_IDE) | 130 | if ((dev->class >> 8) != PCI_CLASS_STORAGE_IDE) |
132 | return -ENODEV; /* IT8172 is more than an IDE controller */ | 131 | return -ENODEV; /* IT8172 is more than an IDE controller */ |