Merge branch 'x86/nuke386' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[firefly-linux-kernel-4.4.55.git] / drivers / ata / pata_palmld.c
index 5ff31b68135c5c9a01c2b3166ff7f3cfb1a5cd71..f9f79fc04a8fc67001f69ff27d43790ddc0ecb8d 100644 (file)
@@ -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);