]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i2c: mv64xxx: simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 11:31:34 +0000 (12:31 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 23 Mar 2017 20:40:29 +0000 (21:40 +0100)
commit074363a5a08c1be345c7d4bd6b0cf0d87a76c729
tree6889801f2f28e92409a84de25161bf0267d23756
parent1ae5214a22f51b42d5f63161e70cf8af4803ff55
i2c: mv64xxx: 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: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c