diff options
author | Paul Mackerras <paulus@samba.org> | 2007-05-10 07:08:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-10 07:08:37 -0400 |
commit | 2ecf042ef530dd0943e41d84b6344f507941af3e (patch) | |
tree | 73100361dd74e3f80f14c7c81ba4675948983f44 /drivers/ata/pata_scc.c | |
parent | 32a56ebb24f23da1bbaf24292acf85b6c04526ab (diff) | |
parent | de5603748af8bf7deac403e6ba92887f8d18e812 (diff) |
Merge branch 'linux-2.6'
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r-- | drivers/ata/pata_scc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c index 5df354d573e8..203f463ac39f 100644 --- a/drivers/ata/pata_scc.c +++ b/drivers/ata/pata_scc.c | |||
@@ -1142,14 +1142,14 @@ static int scc_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1142 | static int printed_version; | 1142 | static int printed_version; |
1143 | unsigned int board_idx = (unsigned int) ent->driver_data; | 1143 | unsigned int board_idx = (unsigned int) ent->driver_data; |
1144 | const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL }; | 1144 | const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL }; |
1145 | struct device *dev = &pdev->dev; | 1145 | struct ata_host *host; |
1146 | int rc; | 1146 | int rc; |
1147 | 1147 | ||
1148 | if (!printed_version++) | 1148 | if (!printed_version++) |
1149 | dev_printk(KERN_DEBUG, &pdev->dev, | 1149 | dev_printk(KERN_DEBUG, &pdev->dev, |
1150 | "version " DRV_VERSION "\n"); | 1150 | "version " DRV_VERSION "\n"); |
1151 | 1151 | ||
1152 | host = ata_port_alloc_pinfo(&pdev->dev, ppi, 1); | 1152 | host = ata_host_alloc_pinfo(&pdev->dev, ppi, 1); |
1153 | if (!host) | 1153 | if (!host) |
1154 | return -ENOMEM; | 1154 | return -ENOMEM; |
1155 | 1155 | ||