commit | 6b244bbf0ddfcb5539bcf4e60d8799c926b0108d | [log] [tgz] |
---|---|---|
author | Philipp Zabel <p.zabel@pengutronix.de> | Wed Mar 15 12:31:47 2017 +0100 |
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | Thu Mar 16 09:53:59 2017 +0100 |
tree | c824fc7912619a1d5171e94df70a7cb3cae5ebc5 | |
parent | 626994e0748019f9987ac520f1dcfd0adb7e34c6 [diff] |
mtd: nand: sunxi: simplify optional reset handling As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional and to call reset_control_(de)assert unconditionally. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>