aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sis.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_sis.c')
-rw-r--r--drivers/ata/sata_sis.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c
index ae040dee419e..447d9c05fb5a 100644
--- a/drivers/ata/sata_sis.c
+++ b/drivers/ata/sata_sis.c
@@ -193,7 +193,6 @@ static int sis_scr_write(struct ata_link *link, unsigned int sc_reg, u32 val)
193 193
194static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 194static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
195{ 195{
196 static int printed_version;
197 struct ata_port_info pi = sis_port_info; 196 struct ata_port_info pi = sis_port_info;
198 const struct ata_port_info *ppi[] = { &pi, &pi }; 197 const struct ata_port_info *ppi[] = { &pi, &pi };
199 struct ata_host *host; 198 struct ata_host *host;
@@ -202,8 +201,7 @@ static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
202 u8 port2_start = 0x20; 201 u8 port2_start = 0x20;
203 int i, rc; 202 int i, rc;
204 203
205 if (!printed_version++) 204 ata_print_version_once(&pdev->dev, DRV_VERSION);
206 dev_info(&pdev->dev, "version " DRV_VERSION "\n");
207 205
208 rc = pcim_enable_device(pdev); 206 rc = pcim_enable_device(pdev);
209 if (rc) 207 if (rc)