Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c41ef91f authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Philipp Zabel
Browse files

reset: hisilicon: check return value of reset_controller_register()



The newly added hisilicon reset driver missed the subsystem-wide
fixup by commit d1f15aa0 ("reset: check return value of
reset_controller_register()").  So fix it now.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent e677774f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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[] = {