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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index b33f525df0f5..e0bc9646a38e 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -2353,7 +2353,6 @@ static irqreturn_t nv_swncq_interrupt(int irq, void *dev_instance)
2353 2353
2354static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 2354static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2355{ 2355{
2356 static int printed_version;
2357 const struct ata_port_info *ppi[] = { NULL, NULL }; 2356 const struct ata_port_info *ppi[] = { NULL, NULL };
2358 struct nv_pi_priv *ipriv; 2357 struct nv_pi_priv *ipriv;
2359 struct ata_host *host; 2358 struct ata_host *host;
@@ -2370,8 +2369,7 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2370 if (pci_resource_start(pdev, bar) == 0) 2369 if (pci_resource_start(pdev, bar) == 0)
2371 return -ENODEV; 2370 return -ENODEV;
2372 2371
2373 if (!printed_version++) 2372 ata_print_version_once(&pdev->dev, DRV_VERSION);
2374 dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
2375 2373
2376 rc = pcim_enable_device(pdev); 2374 rc = pcim_enable_device(pdev);
2377 if (rc) 2375 if (rc)