]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Move tps65217 regulator plat data handling to regulator
authorAnilKumar Ch <anilkumar@ti.com>
Mon, 13 Aug 2012 15:06:05 +0000 (20:36 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 22 Aug 2012 08:55:25 +0000 (10:55 +0200)
commit7c0af33d8f91d0b2d450c17eac16249a922c01b7
treefa725f8e1a7b3a3f7eac166a1de8cea29adf46ae
parent2f2a0c5f4b60dcf2d8db567191c7178e461721c8
mfd: Move tps65217 regulator plat data handling to regulator

Regulator platform data handling was mistakenly added to MFD
driver. So we will see build errors if we compile MFD drivers
without CONFIG_REGULATOR. This patch moves regulator platform
data handling from TPS65217 MFD driver to regulator driver.

This makes MFD driver independent of REGULATOR framework so
build error is fixed if CONFIG_REGULATOR is not set.

drivers/built-in.o: In function `tps65217_probe':
tps65217.c:(.devinit.text+0x13e37): undefined reference
to `of_regulator_match'

This patch also fix allocation size of tps65217 platform data.
Current implementation allocates a struct tps65217_board for each
regulator specified in the device tree. But the structure itself
provides array of regulators so one instance of it is sufficient.

Signed-off-by: AnilKumar Ch <anilkumar@ti.com>
drivers/mfd/tps65217.c
drivers/regulator/tps65217-regulator.c
include/linux/mfd/tps65217.h