aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_nv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r--drivers/ata/sata_nv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index 6962f8e492f5..4cea3ef75226 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -457,7 +457,7 @@ static const struct ata_port_operations nv_adma_ops = {
457 .host_stop = nv_adma_host_stop, 457 .host_stop = nv_adma_host_stop,
458}; 458};
459 459
460static struct ata_port_info nv_port_info[] = { 460static const struct ata_port_info nv_port_info[] = {
461 /* generic */ 461 /* generic */
462 { 462 {
463 .sht = &nv_sht, 463 .sht = &nv_sht,
@@ -1537,7 +1537,7 @@ static void nv_adma_error_handler(struct ata_port *ap)
1537static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) 1537static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1538{ 1538{
1539 static int printed_version = 0; 1539 static int printed_version = 0;
1540 const struct ata_port_info *ppi[2]; 1540 const struct ata_port_info *ppi[] = { NULL, NULL };
1541 struct ata_host *host; 1541 struct ata_host *host;
1542 struct nv_host_priv *hpriv; 1542 struct nv_host_priv *hpriv;
1543 int rc; 1543 int rc;
@@ -1565,8 +1565,8 @@ static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
1565 type = ADMA; 1565 type = ADMA;
1566 } 1566 }
1567 1567
1568 ppi[0] = ppi[1] = &nv_port_info[type]; 1568 ppi[0] = &nv_port_info[type];
1569 rc = ata_pci_prepare_native_host(pdev, ppi, 2, &host); 1569 rc = ata_pci_prepare_native_host(pdev, ppi, &host);
1570 if (rc) 1570 if (rc)
1571 return rc; 1571 return rc;
1572 1572