summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_palmld.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-11-02 08:46:25 +0100
committerJeff Garzik <jgarzik@redhat.com>2012-12-03 11:15:35 +0100
commit56c1d3b77fc83939ab530b8a871e00176fc5b583 (patch)
tree114335beab711991ddc42edded9785c89e1e5d23 /drivers/ata/pata_palmld.c
parentpata_platform: remove unused remove function (diff)
downloadlinux-56c1d3b77fc83939ab530b8a871e00176fc5b583.tar.xz
linux-56c1d3b77fc83939ab530b8a871e00176fc5b583.zip
pata_palmld: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_palmld.c')
-rw-r--r--drivers/ata/pata_palmld.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c
index 5ff31b68135c..f9f79fc04a8f 100644
--- a/drivers/ata/pata_palmld.c
+++ b/drivers/ata/pata_palmld.c
@@ -111,9 +111,7 @@ err1:
static __devexit int palmld_pata_remove(struct platform_device *dev)
{
- struct ata_host *host = platform_get_drvdata(dev);
-
- ata_host_detach(host);
+ ata_platform_remove_one(dev);
/* power down the HDD */
gpio_set_value(GPIO_NR_PALMLD_IDE_PWEN, 0);