ramips: use definitions from rt305x_regs, and nuke the duplicated ones
[openwrt.git] / target / linux / brcm63xx / files / drivers / pcmcia / bcm63xx_pcmcia.c
index 0222b20..383e322 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);
        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;
 }
        kfree(skt);
        return 0;
 }
@@ -466,8 +467,6 @@ struct platform_driver bcm63xx_pcmcia_driver = {
                .name   = "bcm63xx_pcmcia",
                .owner  = THIS_MODULE,
        },
                .name   = "bcm63xx_pcmcia",
                .owner  = THIS_MODULE,
        },
-
-       { },
 };
 
 #ifdef CONFIG_CARDBUS
 };
 
 #ifdef CONFIG_CARDBUS
This page took 0.026563 seconds and 4 git commands to generate.