linux/drivers/of
Grant Likely d12d42f744 i2c/of: Allow device node to be passed via i2c_board_info
The struct device_node *of_node pointer is moving out of dev->archdata
and into the struct device proper.  of_i2c.c needs to set the of_node
pointer before the device is registered.  Since the i2c subsystem
doesn't allow 2 stage allocation and registration of i2c devices, the
of_node pointer needs to be passed via the i2c_board_info structure
so that it is set prior to registration.

This patch adds of_node to struct i2c_board_info (conditional on
CONFIG_OF), sets of_node in i2c_new_device(), and modifies of_i2c.c
to use the new parameter.  The calling of dev_archdata_set_node()
from of_i2c will be removed in a subsequent patch when of_node is
removed from archdata and all users are converted over.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2010-04-28 18:21:56 -06:00
..
Kconfig of: merge of_attach_node() & of_detach_node() 2010-02-09 08:32:42 -07:00
Makefile of/flattree: merge find_flat_dt_string and initial_boot_params 2009-11-23 14:53:09 -07:00
base.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
device.c OF-device: Don't overwrite numa_node in device registration 2008-10-31 16:12:01 +11:00
fdt.c of/flattree: Make unflatten_device_tree() safe to call from any arch 2010-04-28 18:20:29 -06:00
gpio.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
of_i2c.c i2c/of: Allow device node to be passed via i2c_board_info 2010-04-28 18:21:56 -06:00
of_mdio.c driver-core: Add device node pointer to struct device 2010-04-28 18:20:57 -06:00
of_spi.c driver-core: Add device node pointer to struct device 2010-04-28 18:20:57 -06:00
platform.c of/platform: Implement support for dev_pm_ops 2009-10-30 17:20:53 +11:00