linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pata_scc: fix compilation
@ 2007-05-03 19:44 Alexey Dobriyan
  2007-05-03 19:47 ` Tejun Heo
  2007-05-10  0:17 ` Jeff Garzik
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2007-05-03 19:44 UTC (permalink / raw)
  To: akpm, jeff; +Cc: linux-ide, htejun

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/ata/pata_scc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- 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;
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-10  0:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03 19:44 [PATCH] pata_scc: fix compilation Alexey Dobriyan
2007-05-03 19:47 ` Tejun Heo
2007-05-10  0:17 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).