diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-22 14:58:39 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-23 13:04:18 +0900 |
commit | c690be1cb48cf5a95c34c879841cc6e2c4fbc425 (patch) | |
tree | 814f85bdc3d30bed6162662a42172947236dcdd2 /arch/sh/kernel/cpu | |
parent | 2c59b0b70b9d5d61c726f179724660c4c2423f31 (diff) | |
download | talos-obmc-linux-c690be1cb48cf5a95c34c879841cc6e2c4fbc425.tar.gz talos-obmc-linux-c690be1cb48cf5a95c34c879841cc6e2c4fbc425.zip |
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 <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
0 files changed, 0 insertions, 0 deletions