]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 9a0523b5c947ce6c73c1b17d5c49ad51c91f2518..bbcc9e7a95a042477c79b1f823f301cf65c70bdb 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;
 }