* [PATCH] reset: oxnas: Use devm register API and get rid of platform remove
@ 2016-05-20 12:21 Neil Armstrong
2016-05-20 12:26 ` Arnd Bergmann
2016-05-20 13:02 ` Philipp Zabel
0 siblings, 2 replies; 4+ messages in thread
From: Neil Armstrong @ 2016-05-20 12:21 UTC (permalink / raw)
To: linux-kernel, linux-arm-kernel, p.zabel; +Cc: Neil Armstrong
Use the brand new devm_reset_controller_register() API to get rid of
the platform driver remove callback.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/reset/reset-oxnas.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
Hi Philip,
This patch is based on your reset/next tree after the new
devm_reset_controller_register() was merged.
I hope it could be merged for 4.7.
Thanks,
Neil
diff --git a/drivers/reset/reset-oxnas.c b/drivers/reset/reset-oxnas.c
index c60fb2d..9449805 100644
--- a/drivers/reset/reset-oxnas.c
+++ b/drivers/reset/reset-oxnas.c
@@ -112,21 +112,11 @@ static int oxnas_reset_probe(struct platform_device *pdev)
data->rcdev.ops = &oxnas_reset_ops;
data->rcdev.of_node = pdev->dev.of_node;
- return reset_controller_register(&data->rcdev);
-}
-
-static int oxnas_reset_remove(struct platform_device *pdev)
-{
- struct oxnas_reset *data = platform_get_drvdata(pdev);
-
- reset_controller_unregister(&data->rcdev);
-
- return 0;
+ return devm_reset_controller_register(&pdev->dev, &data->rcdev);
}
static struct platform_driver oxnas_reset_driver = {
.probe = oxnas_reset_probe,
- .remove = oxnas_reset_remove,
.driver = {
.name = "oxnas-reset",
.of_match_table = oxnas_reset_dt_ids,
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] reset: oxnas: Use devm register API and get rid of platform remove
2016-05-20 12:21 [PATCH] reset: oxnas: Use devm register API and get rid of platform remove Neil Armstrong
@ 2016-05-20 12:26 ` Arnd Bergmann
2016-05-20 13:02 ` Philipp Zabel
1 sibling, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2016-05-20 12:26 UTC (permalink / raw)
To: linux-arm-kernel; +Cc: Neil Armstrong, linux-kernel, p.zabel
On Friday 20 May 2016 14:21:37 Neil Armstrong wrote:
> Use the brand new devm_reset_controller_register() API to get rid of
> the platform driver remove callback.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> drivers/reset/reset-oxnas.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> Hi Philip,
>
> This patch is based on your reset/next tree after the new
> devm_reset_controller_register() was merged.
>
> I hope it could be merged for 4.7.
>
>
It's too late for that now, as it looks like a cleanup patch that
can wait until 4.8. If the patch fixes a bug that prevents it from
working correctly, please clarify that in the changelog text.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] reset: oxnas: Use devm register API and get rid of platform remove
2016-05-20 12:21 [PATCH] reset: oxnas: Use devm register API and get rid of platform remove Neil Armstrong
2016-05-20 12:26 ` Arnd Bergmann
@ 2016-05-20 13:02 ` Philipp Zabel
2016-05-20 13:03 ` Neil Armstrong
1 sibling, 1 reply; 4+ messages in thread
From: Philipp Zabel @ 2016-05-20 13:02 UTC (permalink / raw)
To: Neil Armstrong; +Cc: linux-kernel, linux-arm-kernel
Hi Neil,
Am Freitag, den 20.05.2016, 14:21 +0200 schrieb Neil Armstrong:
> Use the brand new devm_reset_controller_register() API to get rid of
> the platform driver remove callback.
>
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
> drivers/reset/reset-oxnas.c | 12 +-----------
> 1 file changed, 1 insertion(+), 11 deletions(-)
>
> Hi Philip,
>
> This patch is based on your reset/next tree after the new
> devm_reset_controller_register() was merged.
Applied, thank you.
> I hope it could be merged for 4.7.
I'll submit the branch for 4.8 after 4.7-rc1 is released.
regards
Philipp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] reset: oxnas: Use devm register API and get rid of platform remove
2016-05-20 13:02 ` Philipp Zabel
@ 2016-05-20 13:03 ` Neil Armstrong
0 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2016-05-20 13:03 UTC (permalink / raw)
To: Philipp Zabel; +Cc: linux-kernel, linux-arm-kernel
On 05/20/2016 03:02 PM, Philipp Zabel wrote:
> Hi Neil,
>
> Am Freitag, den 20.05.2016, 14:21 +0200 schrieb Neil Armstrong:
>> Use the brand new devm_reset_controller_register() API to get rid of
>> the platform driver remove callback.
>>
>> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
>> ---
>> drivers/reset/reset-oxnas.c | 12 +-----------
>> 1 file changed, 1 insertion(+), 11 deletions(-)
>>
>> Hi Philip,
>>
>> This patch is based on your reset/next tree after the new
>> devm_reset_controller_register() was merged.
>
> Applied, thank you.
>
>> I hope it could be merged for 4.7.
>
> I'll submit the branch for 4.8 after 4.7-rc1 is released.
>
> regards
> Philipp
>
Thanks Philipp,
Sorry I missed the 4.6 release...
Neil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-20 13:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-20 12:21 [PATCH] reset: oxnas: Use devm register API and get rid of platform remove Neil Armstrong
2016-05-20 12:26 ` Arnd Bergmann
2016-05-20 13:02 ` Philipp Zabel
2016-05-20 13:03 ` Neil Armstrong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).