From: Peter Ujfalusi Date: Wed, 31 Oct 2012 14:54:37 +0000 (+0100) Subject: mfd: twl-core: Fix chip ID for the twl6030-pwm module X-Git-Tag: v3.7-rc8~29^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a3c5ab1749cb78eb06b581c3c13d8e027bef40;p=pandora-kernel.git 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 Acked-by: Tero Kristo Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed