]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-gpio: Move initialization code to subsys_initcall()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 21 May 2010 16:40:58 +0000 (18:40 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 21 May 2010 16:40:58 +0000 (18:40 +0200)
commit97baed40df5653b8d29826fa0f77afadd0afe39e
tree6465233c21b2372275204ff633773cf55ed7a0d5
parent0af0875c403cb4ad775f2e29e3c6bd2bcc16bf65
i2c-gpio: Move initialization code to subsys_initcall()

GPIO driven I2C bus can be used for controlling the PMIC chip. The
example of such configuration is Samsung Aquila board.

This patch moves initialization code to subsys_initcall() to ensure
that the i2c bus is available early so the regulators can be quickly
probed and available for other devices on their probe() call.

Such solution has been proposed by Mark Brown to fix the problem of
the regulators not beeing available on the peripheral device probe():
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-March/011971.html

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-gpio.c