aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_rdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/pata_rdc.c')
-rw-r--r--drivers/ata/pata_rdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c
index 6a8665574fee..79a970f05a2e 100644
--- a/drivers/ata/pata_rdc.c
+++ b/drivers/ata/pata_rdc.c
@@ -364,7 +364,7 @@ static int rdc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
364 364
365static void rdc_remove_one(struct pci_dev *pdev) 365static void rdc_remove_one(struct pci_dev *pdev)
366{ 366{
367 struct ata_host *host = dev_get_drvdata(&pdev->dev); 367 struct ata_host *host = pci_get_drvdata(pdev);
368 struct rdc_host_priv *hpriv = host->private_data; 368 struct rdc_host_priv *hpriv = host->private_data;
369 369
370 pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg); 370 pci_write_config_dword(pdev, 0x54, hpriv->saved_iocfg);