aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2010-06-25 20:17:18 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-07-03 19:00:44 +0200
commitf81a8f9f0982decb3932733efb20620bf642a7d6 (patch)
tree3c7d0b7319677a0ee8a9b0e8534fabb38abd4ba2
parentb02fa027be49b9d9bc9642b2aa08dc2f3c7e32ec (diff)
glamo-core: initialize engine states as disabled
This should fix random init failures such as white screen on boot.
-rw-r--r--drivers/mfd/glamo-core.c5
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;