mfd: lpc_ich: Only configure watchdog or GPIO when present
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 10 Mar 2014 21:34:52 +0000 (16:34 -0500)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 09:00:00 +0000 (09:00 +0000)
commitf0776b8ce03ceb638c51b62f324844c71c446600
treeae9cf75ad657fe5b5e83b446ddd346ec8ebee688
parentf5dccb15877b82a40950c6f752d5345c86189fc9
mfd: lpc_ich: Only configure watchdog or GPIO when present

Some chipsets don't currently have GPIO support enabled.  For these
chipsets don't go through the process of initializing the GPIO region.

Make the same change for the watchdog initialization for chipsets which
may not enable the WDT in the future.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Tested-by: Rajat Jain <rajatjain@juniper.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/lpc_ich.c