public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Davis <afd@ti.com>
To: Alexandru Ardelean <alex@shruggie.ro>,
	Andrei Coardos <aboutphysycs@gmail.com>
Cc: <linux-kernel@vger.kernel.org>, <p.zabel@pengutronix.de>,
	<s-anna@ti.com>
Subject: Re: [PATCH] reset: ti: syscon: remove unneeded call to platform_set_drvdata()
Date: Mon, 7 Aug 2023 10:37:49 -0500	[thread overview]
Message-ID: <08ff46b0-09e6-fd04-afee-99ccc1d9274b@ti.com> (raw)
In-Reply-To: <CAH3L5QrdF3fZDKV4FvsO+czgWyWNxKZE3yaxP7C94o0oyLZ6HQ@mail.gmail.com>

On 8/7/23 6:57 AM, Alexandru Ardelean wrote:
> On Mon, Aug 7, 2023 at 2:15 PM Andrei Coardos <aboutphysycs@gmail.com> wrote:
>>
>> This function call was found to be unnecessary as there is no equivalent
>> platform_get_drvdata() call to access the private data of the driver. Also,
>> the private data is defined in this driver, so there is no risk of it being
>> accessed outside of this driver file.
>>
> 
> Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
> 
> // also adding the people listed as MODULE_AUTHOR
> // the list seems a bit short otherwise; no idea if these emails work
> 
>> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
>> ---

LGTM,

Acked-by: Andrew Davis <afd@ti.com>

>>   drivers/reset/reset-ti-syscon.c | 2 --
>>   1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/reset/reset-ti-syscon.c b/drivers/reset/reset-ti-syscon.c
>> index f0dd7ffc3b72..23f86ddb8668 100644
>> --- a/drivers/reset/reset-ti-syscon.c
>> +++ b/drivers/reset/reset-ti-syscon.c
>> @@ -204,8 +204,6 @@ static int ti_syscon_reset_probe(struct platform_device *pdev)
>>          data->controls = controls;
>>          data->nr_controls = nr_controls;
>>
>> -       platform_set_drvdata(pdev, data);
>> -
>>          return devm_reset_controller_register(dev, &data->rcdev);
>>   }
>>
>> --
>> 2.34.1
>>

  reply	other threads:[~2023-08-07 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 11:15 [PATCH] reset: ti: syscon: remove unneeded call to platform_set_drvdata() Andrei Coardos
2023-08-07 11:57 ` Alexandru Ardelean
2023-08-07 15:37   ` Andrew Davis [this message]
2023-08-08 13:46 ` Philipp Zabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08ff46b0-09e6-fd04-afee-99ccc1d9274b@ti.com \
    --to=afd@ti.com \
    --cc=aboutphysycs@gmail.com \
    --cc=alex@shruggie.ro \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=s-anna@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox