i2c: mux: demux-pinctrl: make drivers with no pinctrl work again
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 6 Nov 2016 20:20:32 +0000 (21:20 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 10 Nov 2016 20:12:47 +0000 (21:12 +0100)
commitd052db11c153cfb469f13a4121966f30ecb57c66
treeca66cefbf2c0327de78e4ca8dd3dad1b545b7074
parentbc33b0ca11e3df467777a4fa7639ba488c9d4911
i2c: mux: demux-pinctrl: make drivers with no pinctrl work again

Some drivers like i2c-gpio do not have dedicated pinctrl states. They
broke when error checking for pinctrl was added. Detect them now, and in
their case, simply skip over pinctrl configuration.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/muxes/i2c-demux-pinctrl.c