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)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:16:26 +0000 (11:16 +0100)
commit99a8d7a5b6cc80b53be430c4b6119c04764f9c62
tree9d568d190c91b73d678965a2c175fce9a9888da1
parent4e90b13b48c036fc4aa51043b66148136f4e172a
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