1. 18 May, 2010 2 commits
  2. 29 Apr, 2010 5 commits
    • Grant Likely's avatar
      i2c/of: Allow device node to be passed via i2c_board_info · d12d42f7
      Grant Likely authored
      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: default avatarGrant Likely <grant.likely@secretlab.ca>
      d12d42f7
    • Grant Likely's avatar
      driver-core: Add device node pointer to struct device · d706c1b0
      Grant Likely authored
      Currently, platforms using CONFIG_OF add a 'struct device_node *of_node'
      to dev->archdata.  However, with CONFIG_OF becoming generic for all
      architectures, it makes sense for commonality to move it out of archdata
      and into struct device proper.
      
      This patch adds a struct device_node *of_node member to struct device
      and updates all locations which currently write the device_node pointer
      into archdata to also update dev->of_node.  Subsequent patches will
      modify callers to use the archdata location and ultimately remove
      the archdata member entirely.
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      CC: Michal Simek <monstr@monstr.eu>
      CC: Greg Kroah-Hartman <gregkh@suse.de>
      CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Stephen Rothwell <sfr@canb.auug.org.au>
      CC: Jeremy Kerr <jeremy.kerr@canonical.com>
      CC: microblaze-uclinux@itee.uq.edu.au
      CC: linux-kernel@vger.kernel.org
      CC: linuxppc-dev@ozlabs.org
      CC: sparclinux@vger.kernel.org
      d706c1b0
    • Grant Likely's avatar
      of: protect contents of of_platform.h and of_device.h · efb2e014
      Grant Likely authored
      Only process contents of of_platform.h and of_device.h if
      CONFIG_OF_DEVICE is set.
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      efb2e014
    • Grant Likely's avatar
      of/flattree: Make unflatten_device_tree() safe to call from any arch · 8bfe9b5c
      Grant Likely authored
      This patch makes unflatten_device_tree() safe to call from any arch
      setup code with the following changes:
      - Make sure initial_boot_params actually points to a device tree blob
        before unflattening
      - Make sure the initial_boot_params->magic field is correct
      - If CONFIG_OF_FLATTREE is not set, then make unflatten_device_tree()
        an empty static inline function.
      
      This patch also adds some additional debug output to the top of
      unflatten_device_tree().
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      8bfe9b5c
    • Grant Likely's avatar
      of/flattree: make of_fdt.h safe to unconditionally include. · cf32eb89
      Grant Likely authored
      If CONFIG_OF_FLATTREE is not set, then don't process the body of
      linux/of_fdt.h
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      cf32eb89
  3. 19 Apr, 2010 24 commits
  4. 18 Apr, 2010 1 commit
  5. 17 Apr, 2010 3 commits
  6. 16 Apr, 2010 5 commits