pata_palmld: utilize common ata_platform_remove_one()
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
Родитель
156f34d26a
Коммит
56c1d3b77f
|
@ -111,9 +111,7 @@ err1:
|
||||||
|
|
||||||
static __devexit int palmld_pata_remove(struct platform_device *dev)
|
static __devexit int palmld_pata_remove(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
struct ata_host *host = platform_get_drvdata(dev);
|
ata_platform_remove_one(dev);
|
||||||
|
|
||||||
ata_host_detach(host);
|
|
||||||
|
|
||||||
/* power down the HDD */
|
/* power down the HDD */
|
||||||
gpio_set_value(GPIO_NR_PALMLD_IDE_PWEN, 0);
|
gpio_set_value(GPIO_NR_PALMLD_IDE_PWEN, 0);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче