gpio: gpio-max710x: Support device tree probing
authorRoland Stigge <stigge@antcom.de>
Thu, 15 Nov 2012 13:59:40 +0000 (14:59 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 17 Nov 2012 20:21:08 +0000 (21:21 +0100)
commit8754fccbae661a0020923cffd63e21de36d51e2e
tree13ce37d4afc0173e30d01d0c6ec9e1d29a40a4c6
parent9859eb99e9212339e2009b98c396b08260276edf
gpio: gpio-max710x: Support device tree probing

For probing via device tree, we need to support the case without platform_data.
In this case, chip.base is set to -1 for automatic numbering.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max730x.c