summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2007-05-03 23:44:59 +0400
committerJeff Garzik <jeff@garzik.org>2007-05-09 20:15:46 -0400
commit0397bad5b413226b8f55f599b185ab506d13b078 (patch)
tree48f610bfdd19874bde1aee122b80c7b34f37a7c6 /drivers/ata
parente1e143cf976ed635a45b768b4a26684173320d6f (diff)
downloadblackbird-op-linux-0397bad5b413226b8f55f599b185ab506d13b078.tar.gz
blackbird-op-linux-0397bad5b413226b8f55f599b185ab506d13b078.zip
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.c4
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)
static int printed_version;
unsigned int board_idx = (unsigned int) ent->driver_data;
const struct ata_port_info *ppi[] = { &scc_port_info[board_idx], NULL };
- struct device *dev = &pdev->dev;
+ struct ata_host *host;
int rc;
if (!printed_version++)
dev_printk(KERN_DEBUG, &pdev->dev,
"version " DRV_VERSION "\n");
- host = ata_port_alloc_pinfo(&pdev->dev, ppi, 1);
+ host = ata_host_alloc_pinfo(&pdev->dev, ppi, 1);
if (!host)
return -ENOMEM;
OpenPOWER on IntegriCloud