[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100902155525.GB16914@core.coreip.homeip.net>
Date: Thu, 2 Sep 2010 08:55:26 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Todd Fischer <todd.fischer@...gerun.com>,
linux-input@...r.kernel.org
Subject: Re: Input: tps6507x-ts - add missing platform_set_drvdata() in
tps6507x_ts_probe()
On Thu, Sep 02, 2010 at 05:20:41PM +0800, Axel Lin wrote:
> We call platform_get_drvdata() in tps6507x_ts_remove(),
> thus we should call platform_set_drvdata() in tps6507x_ts_probe().
>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
Applied, thanks Axel.
> ---
> drivers/input/touchscreen/tps6507x-ts.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c
> index a644d18..7286209 100644
> --- a/drivers/input/touchscreen/tps6507x-ts.c
> +++ b/drivers/input/touchscreen/tps6507x-ts.c
> @@ -335,6 +335,7 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
> dev_err(tsc->dev, "schedule failed");
> goto err2;
> }
> + platform_set_drvdata(pdev, tps6507x_dev);
>
> return 0;
>
> --
> 1.7.2
>
>
>
--
Dmitry
--
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