diff options
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 2ad51f9358bd..000fcc99e01d 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -1179,7 +1179,6 @@ static void pdc_host_init(struct ata_host *host) | |||
1179 | static int pdc_ata_init_one(struct pci_dev *pdev, | 1179 | static int pdc_ata_init_one(struct pci_dev *pdev, |
1180 | const struct pci_device_id *ent) | 1180 | const struct pci_device_id *ent) |
1181 | { | 1181 | { |
1182 | static int printed_version; | ||
1183 | const struct ata_port_info *pi = &pdc_port_info[ent->driver_data]; | 1182 | const struct ata_port_info *pi = &pdc_port_info[ent->driver_data]; |
1184 | const struct ata_port_info *ppi[PDC_MAX_PORTS]; | 1183 | const struct ata_port_info *ppi[PDC_MAX_PORTS]; |
1185 | struct ata_host *host; | 1184 | struct ata_host *host; |
@@ -1187,8 +1186,7 @@ static int pdc_ata_init_one(struct pci_dev *pdev, | |||
1187 | int n_ports, i, rc; | 1186 | int n_ports, i, rc; |
1188 | int is_sataii_tx4; | 1187 | int is_sataii_tx4; |
1189 | 1188 | ||
1190 | if (!printed_version++) | 1189 | ata_print_version_once(&pdev->dev, DRV_VERSION); |
1191 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); | ||
1192 | 1190 | ||
1193 | /* enable and acquire resources */ | 1191 | /* enable and acquire resources */ |
1194 | rc = pcim_enable_device(pdev); | 1192 | rc = pcim_enable_device(pdev); |