diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2007-05-03 15:44:59 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-05-09 20:15:46 -0400 |
commit | 0397bad5b413226b8f55f599b185ab506d13b078 (patch) | |
tree | 48f610bfdd19874bde1aee122b80c7b34f37a7c6 /drivers/ata | |
parent | e1e143cf976ed635a45b768b4a26684173320d6f (diff) |
pata_scc: fix compilation
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-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 | ||