aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/pci/it8213.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/ide/pci/it8213.c b/drivers/ide/pci/it8213.c
index 575bf2386f8e..451b87fd8217 100644
--- a/drivers/ide/pci/it8213.c
+++ b/drivers/ide/pci/it8213.c
@@ -155,23 +155,17 @@ static const struct ide_port_ops it8213_port_ops = {
155 .cable_detect = it8213_cable_detect, 155 .cable_detect = it8213_cable_detect,
156}; 156};
157 157
158#define DECLARE_ITE_DEV(name_str) \ 158static const struct ide_port_info it8213_chipset __devinitdata = {
159 { \ 159 .name = "IT8213",
160 .name = name_str, \ 160 .enablebits = { {0x41, 0x80, 0x80} },
161 .enablebits = { {0x41, 0x80, 0x80} }, \ 161 .port_ops = &it8213_port_ops,
162 .port_ops = &it8213_port_ops, \ 162 .host_flags = IDE_HFLAG_SINGLE,
163 .host_flags = IDE_HFLAG_SINGLE, \ 163 .pio_mask = ATA_PIO4,
164 .pio_mask = ATA_PIO4, \ 164 .swdma_mask = ATA_SWDMA2_ONLY,
165 .swdma_mask = ATA_SWDMA2_ONLY, \ 165 .mwdma_mask = ATA_MWDMA12_ONLY,
166 .mwdma_mask = ATA_MWDMA12_ONLY, \ 166 .udma_mask = ATA_UDMA6,
167 .udma_mask = ATA_UDMA6, \
168 }
169
170static const struct ide_port_info it8213_chipsets[] __devinitdata = {
171 /* 0 */ DECLARE_ITE_DEV("IT8213"),
172}; 167};
173 168
174
175/** 169/**
176 * it8213_init_one - pci layer discovery entry 170 * it8213_init_one - pci layer discovery entry
177 * @dev: PCI device 171 * @dev: PCI device
@@ -184,7 +178,7 @@ static const struct ide_port_info it8213_chipsets[] __devinitdata = {
184 178
185static int __devinit it8213_init_one(struct pci_dev *dev, const struct pci_device_id *id) 179static int __devinit it8213_init_one(struct pci_dev *dev, const struct pci_device_id *id)
186{ 180{
187 return ide_pci_init_one(dev, &it8213_chipsets[id->driver_data], NULL); 181 return ide_pci_init_one(dev, &it8213_chipset, NULL);
188} 182}
189 183
190static const struct pci_device_id it8213_pci_tbl[] = { 184static const struct pci_device_id it8213_pci_tbl[] = {