[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5hfwk26kg9.wl%tiwai@suse.de>
Date: Mon, 12 Sep 2011 13:58:46 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel@...r.kernel.org, Wolfram Sang <w.sang@...gutronix.de>,
Jaroslav Kysela <perex@...ex.cz>, alsa-devel@...a-project.org
Subject: Re: [PATCH 2/2] ALSA: keywest: Remove obsolete cleanup for clientdata
At Fri, 09 Sep 2011 17:50:52 +0800,
Axel Lin wrote:
>
> The i2c core will clear the clientdata pointer automatically.
> We don't have to set the `data' field to NULL in remove() or
> if probe() failed anymore.
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
Applied now. Thanks.
Takashi
> ---
> sound/ppc/keywest.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c
> index 8f064c7..4080bec 100644
> --- a/sound/ppc/keywest.c
> +++ b/sound/ppc/keywest.c
> @@ -82,7 +82,6 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
>
> static int keywest_remove(struct i2c_client *client)
> {
> - i2c_set_clientdata(client, NULL);
> if (! keywest_ctx)
> return 0;
> if (client == keywest_ctx->client)
> --
> 1.7.4.1
>
>
>
--
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