From: Magnus Damm Date: Wed, 22 Jul 2009 14:58:39 +0000 (+0000) Subject: i2c: change i2c-sh_mobile.c module_init() to subsys_initcall() X-Git-Tag: v2.6.32-rc1~640^2~68^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c690be1cb48cf5a95c34c879841cc6e2c4fbc425;p=pandora-kernel.git i2c: change i2c-sh_mobile.c module_init() to subsys_initcall() Convert the i2c-sh_mobile i2c bus driver to use subsys_initcall() instead of module_init(). This change makes the driver register a bit earlier which together with earlier platform data moves the time for probe(). The earlier probe() makes it possible to use i2c_get_adapter() and i2c_transfer() from device_initcall(). The same strategy is used by other i2c bus drivers such as i2c-pxa.c and i2c-s3c2410.c. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt --- Reading git-diff-tree failed