mfd: twl-core: Fix chip ID for the twl6030-pwm module
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 31 Oct 2012 14:54:37 +0000 (15:54 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Nov 2012 11:35:16 +0000 (12:35 +0100)
commit78a3c5ab1749cb78eb06b581c3c13d8e027bef40
tree7b7f49e283b16bdb2ce65496bae88a30a200eb4d
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
mfd: twl-core: Fix chip ID for the twl6030-pwm module

The correct chip id is 1 since the PWM module is on address 0x49. With the
current TWL6030_MODULE_ID1 the kernel will crash early since we have:

 #define TWL6030_MODULE_ID1 0x0E
and
 static struct twl_client twl_modules[4];

Down in the stack we try to get the module by:
struct twl_client *twl = &twl_modules[chip];

Which is obviously going to do nasty things.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c
This page took 0.025399 seconds and 5 git commands to generate.