From: Brian Norris Date: Fri, 2 Nov 2012 07:46:25 +0000 (-0700) Subject: pata_palmld: utilize common ata_platform_remove_one() X-Git-Tag: MMI-PSA29.97-13-9~15361^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56c1d3b77fc83939ab530b8a871e00176fc5b583;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git pata_palmld: utilize common ata_platform_remove_one() Signed-off-by: Brian Norris Signed-off-by: Jeff Garzik --- 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);