diff options
Diffstat (limited to 'drivers/ata/pata_atiixp.c')
-rw-r--r-- | drivers/ata/pata_atiixp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index 3c2264dbdd67..844914681a2a 100644 --- a/drivers/ata/pata_atiixp.c +++ b/drivers/ata/pata_atiixp.c | |||
@@ -268,7 +268,7 @@ static struct ata_port_operations atiixp_port_ops = { | |||
268 | 268 | ||
269 | static int atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 269 | static int atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
270 | { | 270 | { |
271 | static struct ata_port_info info = { | 271 | static const struct ata_port_info info = { |
272 | .sht = &atiixp_sht, | 272 | .sht = &atiixp_sht, |
273 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 273 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
274 | .pio_mask = 0x1f, | 274 | .pio_mask = 0x1f, |
@@ -276,8 +276,8 @@ static int atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
276 | .udma_mask = 0x3F, | 276 | .udma_mask = 0x3F, |
277 | .port_ops = &atiixp_port_ops | 277 | .port_ops = &atiixp_port_ops |
278 | }; | 278 | }; |
279 | static struct ata_port_info *port_info[2] = { &info, &info }; | 279 | const struct ata_port_info *ppi[] = { &info, NULL }; |
280 | return ata_pci_init_one(dev, port_info, 2); | 280 | return ata_pci_init_one(dev, ppi); |
281 | } | 281 | } |
282 | 282 | ||
283 | static const struct pci_device_id atiixp[] = { | 283 | static const struct pci_device_id atiixp[] = { |