reset: check return value of reset_controller_register()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Nov 2015 05:54:56 +0000 (14:54 +0900)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 16 Nov 2015 08:23:47 +0000 (09:23 +0100)
commitd1f15aa09558d00ed23168686156f7341f9d9d86
tree723cd6fa2b090484dd44550f31538b1d1fb74c02
parent5b321a631ab66c6ecf6aaa8a2059b61383e27096
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>
drivers/reset/reset-berlin.c
drivers/reset/reset-socfpga.c
drivers/reset/reset-sunxi.c
drivers/reset/reset-zynq.c