From: Felipe Balbi <felipe.balbi@xxxxxxxxx> just to be sure, let's set it to NULL. Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> --- 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.7.0.rc0.33.g7c3932 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html