diff options
| -rw-r--r-- | drivers/ata/pata_palmld.c | 4 |
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: | |||
| 111 | 111 | ||
| 112 | static __devexit int palmld_pata_remove(struct platform_device *dev) | 112 | static __devexit int palmld_pata_remove(struct platform_device *dev) |
| 113 | { | 113 | { |
| 114 | struct ata_host *host = platform_get_drvdata(dev); | 114 | ata_platform_remove_one(dev); |
| 115 | |||
| 116 | ata_host_detach(host); | ||
| 117 | 115 | ||
| 118 | /* power down the HDD */ | 116 | /* power down the HDD */ |
| 119 | gpio_set_value(GPIO_NR_PALMLD_IDE_PWEN, 0); | 117 | gpio_set_value(GPIO_NR_PALMLD_IDE_PWEN, 0); |
