1. 25 Aug, 2010 2 commits
    • Axel Lin's avatar
      hwmon: (ads7871) Fix ads7871_probe error paths · c12c507d
      Axel Lin authored
      1. remove 'status' variable
      2. remove unneeded initialization of 'err' variable
      3. return missing error code if sysfs_create_group fail.
      4. fix the init sequence as:
         - check hardware existence
         - kzalloc for ads7871_data
         - sysfs_create_group
         - hwmon_device_register
      Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      c12c507d
    • Jean Delvare's avatar
      hwmon: (coretemp) Fix harmless build warning · 45ff34d3
      Jean Delvare authored
      Fix the following build warning:
      
        CC [M]  drivers/hwmon/coretemp.o
      drivers/hwmon/coretemp.c: In function "coretemp_init":
      drivers/hwmon/coretemp.c:521: warning: unused variable "n"
      drivers/hwmon/coretemp.c:521: warning: unused variable "p"
      
      Introduced by commit 851b29cb. When
      you drop code, you also have to drop the variables this code was
      using.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Chen Gong <gong.chen@linux.intel.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Huaxu Wan <huaxu.wan@intel.com>
      45ff34d3
  2. 24 Aug, 2010 38 commits