aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_hpt3x3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_hpt3x3.c')
-rw-r--r--drivers/ata/pata_hpt3x3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c
index 84c636b9beac..bbabe7902fbb 100644
--- a/drivers/ata/pata_hpt3x3.c
+++ b/drivers/ata/pata_hpt3x3.c
@@ -171,7 +171,7 @@ static void hpt3x3_init_chipset(struct pci_dev *dev)
171 171
172static int hpt3x3_init_one(struct pci_dev *dev, const struct pci_device_id *id) 172static int hpt3x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)
173{ 173{
174 static struct ata_port_info info = { 174 static const struct ata_port_info info = {
175 .sht = &hpt3x3_sht, 175 .sht = &hpt3x3_sht,
176 .flags = ATA_FLAG_SLAVE_POSS|ATA_FLAG_SRST, 176 .flags = ATA_FLAG_SLAVE_POSS|ATA_FLAG_SRST,
177 .pio_mask = 0x1f, 177 .pio_mask = 0x1f,
@@ -179,11 +179,11 @@ static int hpt3x3_init_one(struct pci_dev *dev, const struct pci_device_id *id)
179 .udma_mask = 0x07, 179 .udma_mask = 0x07,
180 .port_ops = &hpt3x3_port_ops 180 .port_ops = &hpt3x3_port_ops
181 }; 181 };
182 static struct ata_port_info *port_info[2] = { &info, &info }; 182 const struct ata_port_info *ppi[] = { &info, NULL };
183 183
184 hpt3x3_init_chipset(dev); 184 hpt3x3_init_chipset(dev);
185 /* Now kick off ATA set up */ 185 /* Now kick off ATA set up */
186 return ata_pci_init_one(dev, port_info, 2); 186 return ata_pci_init_one(dev, ppi);
187} 187}
188 188
189#ifdef CONFIG_PM 189#ifdef CONFIG_PM