i2c: designware: Consider SCL GPIO optional
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 17 Feb 2018 20:58:43 +0000 (22:58 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 22 Feb 2018 11:15:35 +0000 (12:15 +0100)
commitd1fa74520dcdbeae891b30035e6c51aafa35306d
tree1f448d5bde7c90742cdd63e2cbfc5a3cffe95854
parentc396b9a03e3bb5e95e036bdb0c7d614e0e1a4e3d
i2c: designware: Consider SCL GPIO optional

GPIO library can return -ENOSYS for the failed request.
Instead of failing ->probe() in this case override error code to 0.

Fixes: ca382f5b38f3 ("i2c: designware: add i2c gpio recovery option")
Reported-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-master.c