[brcm63xx] fix pcmcia device removal
authorFlorian Fainelli <florian@openwrt.org>
Thu, 4 Jun 2009 10:04:11 +0000 (10:04 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 4 Jun 2009 10:04:11 +0000 (10:04 +0000)
SVN-Revision: 16334

target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c

index 0222b20..52b99d5 100644 (file)
@@ -455,6 +455,7 @@ static int bcm63xx_drv_pcmcia_remove(struct platform_device *pdev)
        res = skt->reg_res;
        release_mem_region(res->start, res->end - res->start + 1);
        gpio_free(skt->pd->ready_gpio);
+       platform_set_drvdata(pdev, NULL);
        kfree(skt);
        return 0;
 }