summaryrefslogtreecommitdiff
path: root/drivers/reset/reset-zynq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/reset/reset-zynq.c')
-rw-r--r--drivers/reset/reset-zynq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/reset/reset-zynq.c b/drivers/reset/reset-zynq.c
index 89318a5d5..c6b3cd8b4 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)