mfd: lpc_ich: Only configure watchdog or GPIO when present
authorPeter Tyser <ptyser@xes-inc.com>
Wed, 5 Nov 2014 01:39:10 +0000 (09:39 +0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:25:27 +0000 (09:25 +0900)
commitd952c660693a7dc0d6b505279a7badad482917f9
tree4e4b10178257f5af227123ca2609fddffb621854
parentfa2d082b61bc0d64e80e5b554d825a2e7fa53533
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>
(cherry picked from commit f0776b8ce03ceb638c51b62f324844c71c446600)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
drivers/mfd/lpc_ich.c