X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/151d1485183e89995b1a36544eac8b094101e036..07537ed74301efdc7c26faf1acb4aa175c463696:/target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c diff --git a/target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c b/target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c index 19b05fce0..383e322d0 100644 --- a/target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c +++ b/target/linux/brcm63xx/files/drivers/pcmcia/bcm63xx_pcmcia.c @@ -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; }