diff options
Diffstat (limited to 'drivers/ata/ata_generic.c')
-rw-r--r-- | drivers/ata/ata_generic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c index 0f19e3223358..c3d753296bc6 100644 --- a/drivers/ata/ata_generic.c +++ b/drivers/ata/ata_generic.c | |||
@@ -141,7 +141,7 @@ static int all_generic_ide; /* Set to claim all devices */ | |||
141 | static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 141 | static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
142 | { | 142 | { |
143 | u16 command; | 143 | u16 command; |
144 | static struct ata_port_info info = { | 144 | static const struct ata_port_info info = { |
145 | .sht = &generic_sht, | 145 | .sht = &generic_sht, |
146 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 146 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
147 | .pio_mask = 0x1f, | 147 | .pio_mask = 0x1f, |
@@ -149,7 +149,7 @@ static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id | |||
149 | .udma_mask = 0x3f, | 149 | .udma_mask = 0x3f, |
150 | .port_ops = &generic_port_ops | 150 | .port_ops = &generic_port_ops |
151 | }; | 151 | }; |
152 | static struct ata_port_info *port_info[2] = { &info, &info }; | 152 | const struct ata_port_info *ppi[] = { &info, NULL }; |
153 | 153 | ||
154 | /* Don't use the generic entry unless instructed to do so */ | 154 | /* Don't use the generic entry unless instructed to do so */ |
155 | if (id->driver_data == 1 && all_generic_ide == 0) | 155 | if (id->driver_data == 1 && all_generic_ide == 0) |
@@ -175,7 +175,7 @@ static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id | |||
175 | if (dev->vendor == PCI_VENDOR_ID_AL) | 175 | if (dev->vendor == PCI_VENDOR_ID_AL) |
176 | ata_pci_clear_simplex(dev); | 176 | ata_pci_clear_simplex(dev); |
177 | 177 | ||
178 | return ata_pci_init_one(dev, port_info, 2); | 178 | return ata_pci_init_one(dev, ppi); |
179 | } | 179 | } |
180 | 180 | ||
181 | static struct pci_device_id ata_generic[] = { | 181 | static struct pci_device_id ata_generic[] = { |