mfd: twl-core: Allocate twl_modules dynamically
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:53 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:50 +0000 (00:22 +0100)
commit6dd810b5e6fa688010dcb6d386c61589e850aaaa
treeb56a34b5de9e7f42c93e4ddf851e3d3af1586f7a
parent3c3302794cc79b363779a762051ebe8670812791
mfd: twl-core: Allocate twl_modules dynamically

At boot time we can allocate the twl_modules array dynamically based on the
twl class we are using with devm_kzalloc() instead of the static
twl_modules[] array.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl-core.c