[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211228173709.326b3a2a@jic23-huawei>
Date: Tue, 28 Dec 2021 17:37:09 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: William Breathitt Gray <vilhelm.gray@...il.com>,
Lars-Peter Clausen <lars@...afoo.de>, kernel@...gutronix.de,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org,
Patrick Havelange <patrick.havelange@...ensium.com>,
Syed Nayyar Waris <syednwaris@...il.com>
Subject: Re: [PATCH v2 02/23] counter: ftm-quaddec: Drop unused
platform_set_drvdata()
On Mon, 27 Dec 2021 10:45:05 +0100
Uwe Kleine-König <u.kleine-koenig@...gutronix.de> wrote:
> The driver doesn't ever use platform_get_drvdata, so drop this unused
> call.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
> ---
> drivers/counter/ftm-quaddec.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/counter/ftm-quaddec.c b/drivers/counter/ftm-quaddec.c
> index 5ef0478709cd..9272f7b58beb 100644
> --- a/drivers/counter/ftm-quaddec.c
> +++ b/drivers/counter/ftm-quaddec.c
> @@ -269,8 +269,6 @@ static int ftm_quaddec_probe(struct platform_device *pdev)
> if (!ftm)
> return -ENOMEM;
>
> - platform_set_drvdata(pdev, ftm);
> -
> io = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> if (!io) {
> dev_err(&pdev->dev, "Failed to get memory region\n");
Powered by blists - more mailing lists