1. 07 6月, 2011 1 次提交
  2. 25 3月, 2011 1 次提交
  3. 14 1月, 2011 1 次提交
  4. 28 5月, 2010 3 次提交
  5. 16 1月, 2009 1 次提交
    • B
      gpio: fix probe() error return in gpio driver probes · a342d215
      Ben Dooks 提交于
      A number of drivers in drivers/gpio return -ENODEV when confronted with
      missing setup parameters such as the platform data.  However, returning
      -ENODEV causes the driver layer to silently ignore the driver as it
      assumes the probe did not find anything and was only speculative.
      
      To make life easier to discern why a driver is not being attached, change
      to returning -EINVAL, which is a better description of the fact that the
      driver data was not valid.
      
      Also add a set of dev_dbg() statements to the error paths to provide an
      better explanation of the error as there may be more that one point in the
      driver.
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a342d215
  6. 17 10月, 2008 1 次提交
    • D
      gpio: i2c expanders use subsys_init · 2f8d1197
      David Brownell 提交于
      Make the I2C external GPIO expander drivers register themselves at
      subsys_initcall() time when they're statically linked.
      
      SOC-integrated GPIOs are available starting very early -- early in
      arch_initcall() at latest, but often even before initcalls start to run --
      so this improves consistency, so more subsystems can rely on GPIOs in
      their own subsys_initcall() code.
      
      (This isn't a theoretical problem.  This is one of several patches needed
      to resolve oopsing observed when statically linking kernels on a DaVinci
      EVM.  Its pcf857x GPIOs needed to be available well before some other
      drivers initialized.)
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Cc: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2f8d1197
  7. 26 7月, 2008 1 次提交