Skip to content

Commit

Permalink
pata_palmld: utilize common ata_platform_remove_one()
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Norris <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
computersforpeace authored and Jeff Garzik committed Dec 3, 2012
1 parent 156f34d commit 56c1d3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ata/pata_palmld.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ static __devinit int palmld_pata_probe(struct platform_device *pdev)

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);
Expand Down

0 comments on commit 56c1d3b

Please sign in to comment.