diff options
Diffstat (limited to 'arch/arm/mach-omap2/gpio.c')
| -rw-r--r-- | arch/arm/mach-omap2/gpio.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpio.c b/arch/arm/mach-omap2/gpio.c index 07ac6485074..076be342ad2 100644 --- a/arch/arm/mach-omap2/gpio.c +++ b/arch/arm/mach-omap2/gpio.c @@ -24,6 +24,8 @@  #include <plat/omap_hwmod.h>  #include <plat/omap_device.h> +#include "powerdomain.h" +  static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)  {  	struct platform_device *pdev; @@ -31,6 +33,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)  	struct omap_gpio_dev_attr *dev_attr;  	char *name = "omap_gpio";  	int id; +	struct powerdomain *pwrdm;  	/*  	 * extract the device id from name field available in the @@ -99,6 +102,9 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)  		return -EINVAL;  	} +	pwrdm = omap_hwmod_get_pwrdm(oh); +	pdata->loses_context = pwrdm_can_ever_lose_context(pwrdm); +  	pdev = omap_device_build(name, id - 1, oh, pdata,  				sizeof(*pdata),	NULL, 0, false);  	kfree(pdata);  |