diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/glamo-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c index d7bcce3ecd7..d3cd3714493 100644 --- a/drivers/mfd/glamo-core.c +++ b/drivers/mfd/glamo-core.c @@ -901,7 +901,7 @@ static int __devinit glamo_supported(struct glamo_core *glamo) static int __devinit glamo_probe(struct platform_device *pdev) { - int ret = 0, irq, irq_base; + int ret = 0, n, irq, irq_base; struct glamo_core *glamo; struct resource *mem; @@ -909,6 +909,9 @@ static int __devinit glamo_probe(struct platform_device *pdev) if (!glamo) return -ENOMEM; + for (n = 0; n < __NUM_GLAMO_ENGINES; n++) + glamo->engine_state[n] = GLAMO_ENGINE_DISABLED; + spin_lock_init(&glamo->lock); glamo->pdev = pdev; |