diff options
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 85f7b148f1a1..6ea99df87146 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -1059,7 +1059,6 @@ static inline void ahci_gtf_filter_workaround(struct ata_host *host) | |||
1059 | 1059 | ||
1060 | static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | 1060 | static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
1061 | { | 1061 | { |
1062 | static int printed_version; | ||
1063 | unsigned int board_id = ent->driver_data; | 1062 | unsigned int board_id = ent->driver_data; |
1064 | struct ata_port_info pi = ahci_port_info[board_id]; | 1063 | struct ata_port_info pi = ahci_port_info[board_id]; |
1065 | const struct ata_port_info *ppi[] = { &pi, NULL }; | 1064 | const struct ata_port_info *ppi[] = { &pi, NULL }; |
@@ -1072,8 +1071,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1072 | 1071 | ||
1073 | WARN_ON((int)ATA_MAX_QUEUE > AHCI_MAX_CMDS); | 1072 | WARN_ON((int)ATA_MAX_QUEUE > AHCI_MAX_CMDS); |
1074 | 1073 | ||
1075 | if (!printed_version++) | 1074 | ata_print_version_once(&pdev->dev, DRV_VERSION); |
1076 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); | ||
1077 | 1075 | ||
1078 | /* The AHCI driver can only drive the SATA ports, the PATA driver | 1076 | /* The AHCI driver can only drive the SATA ports, the PATA driver |
1079 | can drive them all so if both drivers are selected make sure | 1077 | can drive them all so if both drivers are selected make sure |