diff options
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r-- | drivers/ata/pata_scc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index a72e3663dc91..eb748e327143 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -1071,15 +1071,12 @@ static int scc_host_init(struct ata_host *host) | |||
1071 | 1071 | ||
1072 | static int scc_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | 1072 | static int scc_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) |
1073 | { | 1073 | { |
1074 | static int printed_version; | ||
1075 | unsigned int board_idx = (unsigned int) ent->driver_data; | 1074 | unsigned int board_idx = (unsigned int) ent->driver_data; |
1076 | const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL }; | 1075 | const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL }; |
1077 | struct ata_host *host; | 1076 | struct ata_host *host; |
1078 | int rc; | 1077 | int rc; |
1079 | 1078 | ||
1080 | if (!printed_version++) | 1079 | ata_print_version_once(&pdev->dev, DRV_VERSION); |
1081 | dev_printk(KERN_DEBUG, &pdev->dev, | ||
1082 | "version " DRV_VERSION "\n"); | ||
1083 | 1080 | ||
1084 | host = ata_host_alloc_pinfo(&pdev->dev, ppi, 1); | 1081 | host = ata_host_alloc_pinfo(&pdev->dev, ppi, 1); |
1085 | if (!host) | 1082 | if (!host) |