]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Drop modifying mc13xxx driver's id_table in probe
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 16 Jul 2012 13:40:17 +0000 (15:40 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Jul 2012 13:40:17 +0000 (15:40 +0200)
commitddab01abf81b627a2a414b9a81de51643f723e24
treebf221b7aac59b435b7e895ed51bb7cff81ddd640
parentd762608968a87178f335408f4ea62a572010e13a
mfd: Drop modifying mc13xxx driver's id_table in probe

This was introduced in commit

        590d023 (mfd: Add device tree probe support for mc13xxx)

for spi and later while introducing support for i2c copied to the i2c
driver.

Modifying driver details is very strange, for example probing an
mc13892 device (instantiated via dt) removes the driver's ability to
handle (traditionally probed) mc13783 devices in this case.
I'm not aware of any problems that make this hack necessary and if
there were some, they'd have to be fixed in the spi/i2c core, not in
a driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-i2c.c
drivers/mfd/mc13xxx-spi.c