aboutsummaryrefslogtreecommitdiff
path: root/drivers/reset/reset-berlin.c
diff options
context:
space:
mode:
authorMasahiro Yamada2015-11-05 14:54:56 +0900
committerPhilipp Zabel2015-11-16 09:23:47 +0100
commitd1f15aa09558d00ed23168686156f7341f9d9d86 (patch)
tree723cd6fa2b090484dd44550f31538b1d1fb74c02 /drivers/reset/reset-berlin.c
parent5b321a631ab66c6ecf6aaa8a2059b61383e27096 (diff)
reset: check return value of reset_controller_register()
Currently, reset_controller_register() always return 0, but it would be better to check its return code. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/reset-berlin.c')
-rw-r--r--drivers/reset/reset-berlin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/reset/reset-berlin.c b/drivers/reset/reset-berlin.c
index 3c922d37255c..970b1ad60293 100644
--- a/drivers/reset/reset-berlin.c
+++ b/drivers/reset/reset-berlin.c
@@ -87,9 +87,7 @@ static int berlin2_reset_probe(struct platform_device *pdev)
priv->rcdev.of_reset_n_cells = 2;
priv->rcdev.of_xlate = berlin_reset_xlate;
- reset_controller_register(&priv->rcdev);
-
- return 0;
+ return reset_controller_register(&priv->rcdev);
}
static const struct of_device_id berlin_reset_dt_match[] = {