[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110830145248.6a3b97ef@endymion.delvare>
Date: Tue, 30 Aug 2011 14:52:48 +0200
From: Jean Delvare <khali@...ux-fr.org>
To: Wolfram Sang <w.sang@...gutronix.de>
Cc: linux-i2c@...r.kernel.org, Richard Purdie <rpurdie@...ys.net>,
Paul Mundt <lethal@...ux-sh.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] video/backlight: Remove obsolete cleanup for clientdata
On Thu, 25 Aug 2011 12:54:12 +0200, Wolfram Sang wrote:
> A few new i2c-drivers came into the kernel which clear the clientdata-pointer
> on exit or error. This is obsolete meanwhile, the core will do it.
>
> Signed-off-by: Wolfram Sang <w.sang@...gutronix.de>
> Cc: Richard Purdie <rpurdie@...ys.net>
> Cc: Paul Mundt <lethal@...ux-sh.org>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> ---
> drivers/video/backlight/adp8870_bl.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c
> index 05a8832..71d90f4 100644
> --- a/drivers/video/backlight/adp8870_bl.c
> +++ b/drivers/video/backlight/adp8870_bl.c
> @@ -932,7 +932,6 @@ out:
> out1:
> backlight_device_unregister(bl);
> out2:
> - i2c_set_clientdata(client, NULL);
> kfree(data);
>
> return ret;
> @@ -952,7 +951,6 @@ static int __devexit adp8870_remove(struct i2c_client *client)
> &adp8870_bl_attr_group);
>
> backlight_device_unregister(data->bl);
> - i2c_set_clientdata(client, NULL);
> kfree(data);
>
> return 0;
Acked-by: Jean Delvare <khali@...ux-fr.org>
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists