i2c: pca-platform: add devicetree awareness
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 26 Jun 2017 00:44:32 +0000 (12:44 +1200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Jun 2017 19:47:54 +0000 (21:47 +0200)
commit0e8ce93bdceb6d36a3c1db2227d3f51168fb796c
tree4977a7b5d91256ea7e47635e46aba44c986f7657
parent4cc7229daa46d1867e66ba09929d936377ae4837
i2c: pca-platform: add devicetree awareness

Allow devices that use this driver to be registered via a
devicetree.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
[wsa: fixed leakage when registering GPIO failed]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pca-platform.c