Skip to content

Commit

Permalink
pata_ixp4xx_cf: fix oops on detach
Browse files Browse the repository at this point in the history
pata_ixp4xx_cf dodged dont-clear-drvdata-in-LLD bombing run as it used
platform_set_drvdata() instead of dev_set_drvdata().  This causes OOPS
on devres host release.  Kill it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Mar 19, 2007
1 parent cc26126 commit 2ab302b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/ata/pata_ixp4xx_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ static __devexit int ixp4xx_pata_remove(struct platform_device *dev)
struct ata_host *host = platform_get_drvdata(dev);

ata_host_detach(host);
platform_set_drvdata(dev, NULL);

return 0;
}
Expand Down

0 comments on commit 2ab302b

Please sign in to comment.