mtd: nand: sunxi: simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 11:31:47 +0000 (12:31 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 16 Mar 2017 08:53:59 +0000 (09:53 +0100)
commit6b244bbf0ddfcb5539bcf4e60d8799c926b0108d
treec824fc7912619a1d5171e94df70a7cb3cae5ebc5
parent626994e0748019f9987ac520f1dcfd0adb7e34c6
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>
drivers/mtd/nand/sunxi_nand.c