gpio: mcp23s08: handle default gpio base
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 20 Jan 2015 09:00:08 +0000 (17:00 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 26 Jan 2015 08:10:44 +0000 (09:10 +0100)
commitb184c388f773f30b6c707d3d4599b2db80f4390c
tree40819016a42677debbafb2f11b47d28396259dbe
parent3d009c8c61f96b50c068c8122e929352c359f877
gpio: mcp23s08: handle default gpio base

Create default gpio base if neither device node nor
platform data is defined.

Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Antonio Fiol <antonio@fiol.es>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mcp23s08.c