* [PATCH] reset: hisilicon: check return value of reset_controller_register()
@ 2016-01-23 16:19 Masahiro Yamada
2016-01-25 10:01 ` Philipp Zabel
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2016-01-23 16:19 UTC (permalink / raw)
To: linux-kernel; +Cc: Philipp Zabel, Masahiro Yamada, Arnd Bergmann, Chen Feng
The newly added hisilicon reset driver missed the subsystem-wide
fixup by commit d1f15aa09558 ("reset: check return value of
reset_controller_register()"). So fix it now.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
drivers/reset/hisilicon/hi6220_reset.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/reset/hisilicon/hi6220_reset.c b/drivers/reset/hisilicon/hi6220_reset.c
index 7787a9b..744b2e7 100644
--- a/drivers/reset/hisilicon/hi6220_reset.c
+++ b/drivers/reset/hisilicon/hi6220_reset.c
@@ -83,9 +83,7 @@ static int hi6220_reset_probe(struct platform_device *pdev)
data->rc_dev.ops = &hi6220_reset_ops;
data->rc_dev.of_node = pdev->dev.of_node;
- reset_controller_register(&data->rc_dev);
-
- return 0;
+ return reset_controller_register(&data->rc_dev);
}
static const struct of_device_id hi6220_reset_match[] = {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] reset: hisilicon: check return value of reset_controller_register()
2016-01-23 16:19 [PATCH] reset: hisilicon: check return value of reset_controller_register() Masahiro Yamada
@ 2016-01-25 10:01 ` Philipp Zabel
0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2016-01-25 10:01 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: linux-kernel, Arnd Bergmann, Chen Feng
Am Sonntag, den 24.01.2016, 01:19 +0900 schrieb Masahiro Yamada:
> The newly added hisilicon reset driver missed the subsystem-wide
> fixup by commit d1f15aa09558 ("reset: check return value of
> reset_controller_register()"). So fix it now.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> drivers/reset/hisilicon/hi6220_reset.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/reset/hisilicon/hi6220_reset.c b/drivers/reset/hisilicon/hi6220_reset.c
> index 7787a9b..744b2e7 100644
> --- a/drivers/reset/hisilicon/hi6220_reset.c
> +++ b/drivers/reset/hisilicon/hi6220_reset.c
> @@ -83,9 +83,7 @@ static int hi6220_reset_probe(struct platform_device *pdev)
> data->rc_dev.ops = &hi6220_reset_ops;
> data->rc_dev.of_node = pdev->dev.of_node;
>
> - reset_controller_register(&data->rc_dev);
> -
> - return 0;
> + return reset_controller_register(&data->rc_dev);
> }
>
> static const struct of_device_id hi6220_reset_match[] = {
Applied, thanks.
regards
Philipp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-25 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-23 16:19 [PATCH] reset: hisilicon: check return value of reset_controller_register() Masahiro Yamada
2016-01-25 10:01 ` Philipp Zabel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.