diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-11-05 05:54:56 (GMT) |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2015-11-16 08:23:47 (GMT) |
commit | d1f15aa09558d00ed23168686156f7341f9d9d86 (patch) | |
tree | 723cd6fa2b090484dd44550f31538b1d1fb74c02 /drivers/reset/reset-zynq.c | |
parent | 5b321a631ab66c6ecf6aaa8a2059b61383e27096 (diff) | |
download | linux-d1f15aa09558d00ed23168686156f7341f9d9d86.tar.xz |
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-zynq.c')
-rw-r--r-- | drivers/reset/reset-zynq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/reset/reset-zynq.c b/drivers/reset/reset-zynq.c index 89318a5..c6b3cd8 100644 --- a/drivers/reset/reset-zynq.c +++ b/drivers/reset/reset-zynq.c @@ -121,9 +121,8 @@ static int zynq_reset_probe(struct platform_device *pdev) priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG; priv->rcdev.ops = &zynq_reset_ops; priv->rcdev.of_node = pdev->dev.of_node; - reset_controller_register(&priv->rcdev); - return 0; + return reset_controller_register(&priv->rcdev); } static int zynq_reset_remove(struct platform_device *pdev) |