linux-mips
[Top] [All Lists]

[PATCH 7/8] bcm63xx: fix bcm63xx_pcmcia device removal.

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 7/8] bcm63xx: fix bcm63xx_pcmcia device removal.
From: Maxime Bizon <mbizon@freebox.fr>
Date: Wed, 3 Jun 2009 16:02:26 +0200
Cc: Florian Fainelli <florian@openwrt.org>, Maxime Bizon <mbizon@freebox.fr>
In-reply-to: <1244037747-27144-1-git-send-email-mbizon@freebox.fr>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1244037747-27144-1-git-send-email-mbizon@freebox.fr>
Sender: linux-mips-bounce@linux-mips.org
Add missing platform_set_drvdata(pdev, NULL) before releasing private
data.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 drivers/pcmcia/bcm63xx_pcmcia.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/pcmcia/bcm63xx_pcmcia.c b/drivers/pcmcia/bcm63xx_pcmcia.c
index 48928b8..2981aff 100644
--- a/drivers/pcmcia/bcm63xx_pcmcia.c
+++ b/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;
 }
-- 
1.6.0.4


<Prev in Thread] Current Thread [Next in Thread>