mfd: twl-core: Do not try to call legacy mfd add_children() when booted with DT
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Jan 2013 13:53:54 +0000 (14:53 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:50 +0000 (00:22 +0100)
commite581238f2817d8ca8948340a2bc26dd9504bb812
tree78197777c7d08b7d5134ffcdbdb94d30961faebb
parent6dd810b5e6fa688010dcb6d386c61589e850aaaa
mfd: twl-core: Do not try to call legacy mfd add_children() when booted with DT

There is really no point to retry to add children devices in case the
of_platform_populate() fails.
We do not have any information provided via pdata in this case anyways.
Depending on the boot type (legacy or DT) only execute either one.

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