aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r--drivers/ata/ata_piix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 4f5a0dc7fb9c..13b6b1df2ac4 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1030,7 +1030,7 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1030 static int printed_version; 1030 static int printed_version;
1031 struct device *dev = &pdev->dev; 1031 struct device *dev = &pdev->dev;
1032 struct ata_port_info port_info[2]; 1032 struct ata_port_info port_info[2];
1033 struct ata_port_info *ppinfo[2] = { &port_info[0], &port_info[1] }; 1033 const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] };
1034 struct piix_host_priv *hpriv; 1034 struct piix_host_priv *hpriv;
1035 unsigned long port_flags; 1035 unsigned long port_flags;
1036 1036
@@ -1089,7 +1089,7 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1089 port_info[1].mwdma_mask = 0; 1089 port_info[1].mwdma_mask = 0;
1090 port_info[1].udma_mask = 0; 1090 port_info[1].udma_mask = 0;
1091 } 1091 }
1092 return ata_pci_init_one(pdev, ppinfo, 2); 1092 return ata_pci_init_one(pdev, ppi);
1093} 1093}
1094 1094
1095static int __init piix_init(void) 1095static int __init piix_init(void)