just to be sure, let's set it to NULL.

Signed-off-by: Felipe Balbi <[email protected]>
---
 drivers/cbus/cbus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c
index c0b4248..f454e77 100644
--- a/drivers/cbus/cbus.c
+++ b/drivers/cbus/cbus.c
@@ -279,7 +279,9 @@ static void __exit cbus_bus_remove(struct platform_device 
*pdev)
 
        gpio_free(chost->dat_gpio);
        gpio_free(chost->clk_gpio);
+
        kfree(chost);
+       cbus_host = NULL;
 }
 
 static struct platform_driver cbus_driver = {
-- 
1.6.6.rc0

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to