]> git.baikalelectronics.ru Git - kernel.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)
commit4171cbc50c05b01b190ac3203a896d896fa95678
tree6889801f2f28e92409a84de25161bf0267d23756
parentd1a596ee61037723a326e23f24edba000336c051
i2c: mv64xxx: simplify optional reset handling

As of commit 843d30489bcb ("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