pata_ixp4xx_cf: fix oops on detach
authorTejun Heo <htejun@gmail.com>
Sat, 17 Mar 2007 19:55:23 +0000 (04:55 +0900)
committerJeff Garzik <jeff@garzik.org>
Mon, 19 Mar 2007 15:56:59 +0000 (11:56 -0400)
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>
drivers/ata/pata_ixp4xx_cf.c

index 9a0523b..bbcc9e7 100644 (file)
@@ -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;
 }