we need to clear pm_power_off otherwise we
will have kernel trying to call an unexistent
function.

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

diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c
index d0454bd..0ca58b7 100644
--- a/drivers/cbus/retu.c
+++ b/drivers/cbus/retu.c
@@ -489,6 +489,7 @@ static int __init retu_probe(struct platform_device *pdev)
        return 0;
 
 err2:
+       pm_power_off = NULL;
        __retu_write_reg(retu, RETU_REG_IMR, 0xffff);
        free_irq(retu->irq, retu);
 
@@ -504,7 +505,8 @@ static int __exit retu_remove(struct platform_device *pdev)
 {
        struct retu             *retu = platform_get_drvdata(pdev);
 
-       irq = platform_get_irq(pdev, 0);
+       pm_power_off = NULL;
+       the_retu = NULL;
 
        /* Mask all RETU interrupts */
        __retu_write_reg(retu, RETU_REG_IMR, 0xffff);
@@ -512,7 +514,6 @@ static int __exit retu_remove(struct platform_device *pdev)
        free_irq(retu->irq, retu);
        retu_irq_exit(retu);
        kfree(retu);
-       the_retu = NULL;
 
        return 0;
 }
-- 
1.7.4.rc2

--
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