From: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Cc: Acked-by: Tejun Heo Cc: Alan Cox Signed-off-by: Andrew Morton --- drivers/ata/pata_scc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/ata/pata_scc.c~pata_scc-fix-compilation drivers/ata/pata_scc.c --- a/drivers/ata/pata_scc.c~pata_scc-fix-compilation +++ a/drivers/ata/pata_scc.c @@ -1142,14 +1142,14 @@ static int scc_init_one (struct pci_dev 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; _