[brcm63xx] fix pcmcia device removal
[openwrt-10.03/.git] / target / linux / brcm63xx / files / drivers / pcmcia / bcm63xx_pcmcia.c
index 19b05fce0c4a2ee7f53045f0badd72ec77de05dd..52b99d5b80c9b77d65bd80436a294442918fae42 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;
 }
@@ -466,6 +467,8 @@ struct platform_driver bcm63xx_pcmcia_driver = {
                .name   = "bcm63xx_pcmcia",
                .owner  = THIS_MODULE,
        },
+
+       { },
 };
 
 #ifdef CONFIG_CARDBUS