From patchwork Fri Nov 2 07:46:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [11/14] pata_palmld: utilize common ata_platform_remove_one() Date: Thu, 01 Nov 2012 21:46:25 -0000 From: Brian Norris X-Patchwork-Id: 196505 Message-Id: <1351842388-27210-12-git-send-email-computersforpeace@gmail.com> To: Jeff Garzik Cc: , Brian Norris , Tejun Heo Signed-off-by: Brian Norris --- drivers/ata/pata_palmld.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index 5ff31b6..f9f79fc 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);