linux-kernel-test/drivers/i2c
Grant Likely 925bb9c649 of/i2c: Fix module load order issue caused by of_i2c.c
Commit 959e85f7, "i2c: add OF-style registration and binding" caused a
module dependency loop where of_i2c.c calls functions in i2c-core, and
i2c-core calls of_i2c_register_devices() in of_i2c.  This means that
when i2c support is built as a module when CONFIG_OF is set, then
neither i2c_core nor of_i2c are able to be loaded.

This patch fixes the problem by moving the of_i2c_register_devices()
calls back into the device drivers.  Device drivers already
specifically request the core code to parse the device tree for
devices anyway by setting the of_node pointer, so it isn't a big
deal to also call the registration function.  The drivers just become
slightly more verbose.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2010-09-30 14:14:23 +02:00
..
algos i2c-algo-pca: Fix coding style issues 2010-05-21 18:41:00 +02:00
busses of/i2c: Fix module load order issue caused by of_i2c.c 2010-09-30 14:14:23 +02:00
muxes i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
i2c-boardinfo.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
i2c-core.c of/i2c: Fix module load order issue caused by of_i2c.c 2010-09-30 14:14:23 +02:00
i2c-core.h i2c: Use rwsem instead of mutex for board info 2009-06-19 16:58:20 +02:00
i2c-dev.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-mux.c i2c: Multiplexed I2C bus core support 2010-08-11 18:21:02 +02:00
i2c-smbus.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
Kconfig i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00
Makefile i2c: I2C bus multiplexer driver pca954x 2010-08-11 18:21:03 +02:00