1. 16 Aug, 2008 1 commit
  2. 15 Aug, 2008 1 commit
  3. 14 Aug, 2008 1 commit
  4. 12 Aug, 2008 3 commits
  5. 11 Aug, 2008 18 commits
  6. 10 Aug, 2008 16 commits
    • Wim Van Sebroeck's avatar
      [WATCHDOG] pcwd.c - fix open_allowed type. · 36cbaa87
      Wim Van Sebroeck authored
      Fix following warnings:
      drivers/watchdog/pcwd.c: In function 'pcwd_open':
      drivers/watchdog/pcwd.c:703: warning: passing argument 2 of 'test_and_set_bit' from incompatible pointer type
      drivers/watchdog/pcwd.c: In function 'pcwd_close':
      drivers/watchdog/pcwd.c:723: warning: passing argument 2 of 'clear_bit' from incompatible pointer type
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      36cbaa87
    • Ian Molton's avatar
      mfd: tc6393 cleanup and update · 25d6cbd8
      Ian Molton authored
      This patchset cleans up the TC6393XB support.
      
      * Add provision for the MMC subdevice
      * Disable / enable clocks on suspend / resume
      * Remove fragments of badly merged code (eg. linux/fb include etc.)
      * Use a device specific clock name to break dependancy on ARM/PXA2XX
      * Drop unnecessary resource names
      * Switch to tmio_io* accessors
      Signed-off-by: default avatarIan Molton <spyro@f2s.com>
      Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
      25d6cbd8
    • Samuel Ortiz's avatar
      mfd: have TMIO drivers and subdevices depend on ARM · 1c2c30ac
      Samuel Ortiz authored
      The TMIO chips are only found (and thus tested) on ARM machines.
      Moreover, we don't want the TMIO cells to be built if one of the TMIO
      driver is not selected (which indirectly make the TMIO cells drivers
      depend on ARM as well).
      Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
      1c2c30ac
    • Ian Molton's avatar
      mfd: TMIO MMC driver · 4a48998f
      Ian Molton authored
      This patch adds support for the MMC subdevice 'cell' commonly found in
      TMIO based MFDs.
      Signed-off-by: default avatarIan Molton <spyro@f2s.com>
      Acked-by: default avatarPierre Ossman <drzeus@drzeus.cx>
      Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
      4a48998f
    • Ian Molton's avatar
      mfd: driver for the TMIO NAND controller · ec43b816
      Ian Molton authored
      This patch adds support for the NAND controller commonly found in
      TMIO based MFDs.
      Signed-off-by: default avatarIan Molton <spyro@f2s.com>
      Acked-By: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
      ec43b816
    • Jean Delvare's avatar
      hwmon: (lm75) Drop legacy i2c driver · 8ff69eeb
      Jean Delvare authored
      Drop the legacy lm75 driver, and add a detect callback to the
      new-style driver to achieve the same functionality.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: David Brownell <david-b@pacbell.net>
      8ff69eeb
    • David Brownell's avatar
      i2c: correct some size_t printk formats · 2ce5b34f
      David Brownell authored
      Fix various printk format strings where %zd was passed a size_t;
      those should be %zu instead.  (Courtesy of a version of GCC which
      warns when these details are wrong.)
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      2ce5b34f
    • Jean Delvare's avatar
      i2c: Check for address business before creating clients · c1159f9e
      Jean Delvare authored
      We check for address business in i2c_probe_address(),
      i2c_detect_address() and i2c_new_probed_device(), but this isn't
      sufficient. Drivers can call i2c_attach_client() and
      i2c_new_device() on any address, so we must check the address there
      as well.
      
      This fixes bug #11239:
      http://bugzilla.kernel.org/show_bug.cgi?id=11239Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      c1159f9e
    • Jean Delvare's avatar
      i2c: Let users select algorithm drivers manually again · 8d24f8dc
      Jean Delvare authored
      In kernel 2.6.26, the ability to select I2C algorithm drivers manually
      was removed, as all in-kernel drivers do that automatically. However
      there were some complaints that it was a problem for out-of-tree I2C
      bus drivers. In order to address these complaints, let's allow manual
      selection of these drivers again, but still hide them by default for
      better general user experience.
      
      This closes bug #11140:
      http://bugzilla.kernel.org/show_bug.cgi?id=11140Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      8d24f8dc
    • Hans Verkuil's avatar
      i2c: Fix NULL pointer dereference in i2c_new_probed_device · b25b791b
      Hans Verkuil authored
      Fix a NULL pointer dereference that happened when calling
      i2c_new_probed_device on one of the addresses for which we use byte
      reads instead of quick write for detection purpose (that is: 0x30-0x37
      and 0x50-0x5f).
      Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      b25b791b
    • Jean Delvare's avatar
      i2c: Fix oops on bus multiplexer driver loading · 399d6b26
      Jean Delvare authored
      The two I2C bus multiplexer drivers (i2c-amd756-s4882 and
      i2c-nforce2-s4985) make use of the bus they want to multiplex before
      checking if it is really present. Swap the instructions to test for
      presence first. This fixes a oops reported by Ingo Molnar.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      399d6b26
    • Adrian Bunk's avatar
      [WATCHDOG] fix watchdog/ixp4xx_wdt.c compilation · 9229376e
      Adrian Bunk authored
      This patch fixes the following compile error caused by
      commit 20d35f3e
      ([WATCHDOG 22/57] ixp4xx_wdt: unlocked_ioctl):
      
      <--  snip  -->
      
      ...
        CC      drivers/watchdog/ixp4xx_wdt.o
      ixp4xx_wdt.c:32: error: expected '=', ',', ';', 'asm' or '__attribute__' 
      ixp4xx_wdt.c: In function 'wdt_enable':
      ixp4xx_wdt.c:41: error: 'wdt_lock' undeclared (first use in this 
      ixp4xx_wdt.c:41: error: (Each undeclared identifier is reported only 
      ixp4xx_wdt.c:41: error: for each function it appears in.)
      ixp4xx_wdt.c: In function 'wdt_disable':
      ixp4xx_wdt.c:52: error: 'wdt_lock' undeclared (first use in this 
      ixp4xx_wdt.c: In function 'ixp4xx_wdt_init':
      ixp4xx_wdt.c:186: error: 'wdt_lock' undeclared (first use in this 
      make[3]: *** [drivers/watchdog/ixp4xx_wdt.o] Error 1
      
      <--  snip  -->
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      9229376e
    • Adrian Bunk's avatar
      [WATCHDOG] fix watchdog/wdt285.c compilation · 3f11df21
      Adrian Bunk authored
      This patch fixes the following compile error caused by
      commit d0e58eed
      ([WATCHDOG 55/57] wdt285: switch to unlocked_ioctl and tidy up ...):
      
      <--  snip  -->
      
      ...
        CC [M]  drivers/watchdog/wdt285.o
      wdt285.c: In function 'footbridge_watchdog_init':
      wdt285.c:211: error: 'KERN_WARN' undeclared (first use in this function)
      wdt285.c:211: error: (Each undeclared identifier is reported only once
      wdt285.c:211: error: for each function it appears in.)
      wdt285.c:212: error: expected ')' before string constant
      make[3]: *** [drivers/watchdog/wdt285.o] Error 1
      
      <--  snip  -->
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      3f11df21
    • Adrian Bunk's avatar
      [WATCHDOG] fix watchdog/at91rm9200_wdt.c compilation · 3c4fafd6
      Adrian Bunk authored
      This patch fixes the following compile error:
      
      <--  snip  -->
      
      ...
        CC      drivers/watchdog/at91rm9200_wdt.o
      at91rm9200_wdt.c:188: error: 'at91_wdt_ioctl' undeclared here (not in a 
      make[3]: *** [drivers/watchdog/at91rm9200_wdt.o] Error 1
      
      <--  snip  -->
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      3c4fafd6
    • Adrian Bunk's avatar
      [WATCHDOG] fix watchdog/shwdt.c compilation · 58cf4198
      Adrian Bunk authored
      This patch fixes the following compile errors caused by
      commit 70b814ec
      ([WATCHDOG 45/57] shwdt: coding style, cleanup, switch to unlocked_io):
      
      <--  snip  -->
      
      ...
        CC      drivers/watchdog/shwdt.o
      shwdt.c:64: error: 'WTCSR_CKS_4096' undeclared here (not in a function)
      shwdt.c: In function 'sh_wdt_start':
      shwdt.c:92: error: 'wdt_lock' undeclared (first use in this function)
      shwdt.c:92: error: (Each undeclared identifier is reported only once
      shwdt.c:92: error: for each function it appears in.)
      shwdt.c:97: error: implicit declaration of function 'sh_wdt_read_csr'
      shwdt.c:98: error: 'WTCSR_WT' undeclared (first use in this function)
      shwdt.c:99: error: implicit declaration of function 'sh_wdt_write_csr'
      shwdt.c:101: error: implicit declaration of function 'sh_wdt_write_cnt'
      shwdt.c:112: error: 'WTCSR_TME' undeclared (first use in this function)
      shwdt.c:113: error: 'WTCSR_RSTS' undeclared (first use in this function)
      shwdt.c: In function 'sh_wdt_stop':
      shwdt.c:142: error: 'wdt_lock' undeclared (first use in this function)
      shwdt.c:147: error: 'WTCSR_TME' undeclared (first use in this function)
      shwdt.c: In function 'sh_wdt_keepalive':
      shwdt.c:160: error: 'wdt_lock' undeclared (first use in this function)
      shwdt.c: In function 'sh_wdt_set_heartbeat':
      shwdt.c:176: error: 'wdt_lock' undeclared (first use in this function)
      shwdt.c: In function 'sh_wdt_ping':
      shwdt.c:192: error: 'wdt_lock' undeclared (first use in this function)
      shwdt.c:197: error: 'WTCSR_IOVF' undeclared (first use in this function)
      shwdt.c: At top level:
      shwdt.c:417: error: conflicting type qualifiers for 'sh_wdt_info'
      shwdt.c:71: error: previous declaration of 'sh_wdt_info' was here
      make[3]: *** [drivers/watchdog/shwdt.o] Error 1
      
      <--  snip  -->
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      58cf4198
    • Adrian Bunk's avatar
      [WATCHDOG] fix watchdog/txx9wdt.c compilation · f8494e06
      Adrian Bunk authored
      This patch fixes the following compile error caused by
      commit 8dc244f7
      ([WATCHDOG 48/57] txx9: Fix locking, switch to unlocked_ioctl):
      
      <--  snip  -->
      
      ...
        CC      drivers/watchdog/txx9wdt.o
      txx9wdt.c:48: warning: type defaults to 'int' in declaration of 
      txx9wdt.c:48: warning: parameter names (without types) in function 
      txx9wdt.c: In function 'txx9wdt_ping':
      txx9wdt.c:52: error: 'txx9_lock' undeclared (first use in this function)
      txx9wdt.c:52: error: (Each undeclared identifier is reported only once
      txx9wdt.c:52: error: for each function it appears in.)
      txx9wdt.c: In function 'txx9wdt_start':
      txx9wdt.c:59: error: 'txx9_lock' undeclared (first use in this function)
      txx9wdt.c: In function 'txx9wdt_stop':
      txx9wdt.c:71: error: 'txx9_lock' undeclared (first use in this function)
      make[3]: *** [drivers/watchdog/txx9wdt.o] Error 1
      
      <--  snip  -->
      Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
      f8494e06