[PATCH] Fix oops in pata_pcmcia

The change to the devres layer re-orders the execution of cleanup
functions and in turn causes the pcmcia layer to oops as it zaps a
pointer now needed later on. We simply leave the pointer alone.

Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Alan and committed by Linus Torvalds eafb4f18 8cd0ae05

-1
-1
drivers/ata/pata_pcmcia.c
··· 308 if (info->ndev) { 309 struct ata_host *host = dev_get_drvdata(dev); 310 ata_host_detach(host); 311 - dev_set_drvdata(dev, NULL); 312 } 313 info->ndev = 0; 314 pdev->priv = NULL;
··· 308 if (info->ndev) { 309 struct ata_host *host = dev_get_drvdata(dev); 310 ata_host_detach(host); 311 } 312 info->ndev = 0; 313 pdev->priv = NULL;