On Wed, Feb 16, 2011 at 09:42:30PM +0200, Felipe Balbi wrote:
> 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;

there it goes, I commited that hunk to the wrong patch. Sorry about
that.

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