1. 27 Jul, 2012 11 commits
    • Jean Delvare's avatar
      hwmon: (jc42) Don't reset hysteresis on device removal · 5953e276
      Jean Delvare authored
      Restoring the configuration register on device removal has the side
      effect of also resetting the hysteresis value. This is inconsistent as
      the other limits are not reset, only hysteresis. So, following the
      principle of least surprise, preserve the hysteresis value when
      restoring the configuration register.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      5953e276
    • Jean Delvare's avatar
      hwmon: (jc42) Simplify hysteresis mask · 2ccc8731
      Jean Delvare authored
      Define JC42_CFG_HYST_MASK as the mask _before_ shifting instead of
      after shifting. This simplifies the current code slightly, and will
      simplify the code to come even more.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      2ccc8731
    • Guenter Roeck's avatar
      hwmon: (acpi_power_meter) Fix build warning · 9baeb8fd
      Guenter Roeck authored
      Commit c5dec018 (acpi_power_meter: Use struct
      dev_pm_ops for power management) introduced the following build warning. It is
      seen if CONFIG_PM_SLEEP is not defined.
      
      acpi_power_meter.c:930:12: warning: acpi_power_meter_resume defined but not used
      
      Fix it.
      
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      9baeb8fd
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 25918f98
      Linus Torvalds authored
      Pull ARM SoC fixes from Olof Johansson:
       "A mixed bag of fixes, some for merge window fallout (tegra, MXS), and
        a short series of fixes for marvell platforms that didn't make it in
        before 3.5."
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        ARM: mxs: fix compile error caused by prom_update_property change
        ARM: dt: tegra trimslice: enable USB2 port
        ARM: dt: tegra trimslice: add vbus-gpio property
        ARM: vt8500: Add maintainer for VT8500 architecture
        ARM: Kirkwood: Replace mrvl with marvell
        ARM: Orion: fix driver probe error handling with respect to clk
        ARM: Dove: Fixup ge00 initialisation
        ARM: Kirkwood: Fix PHY disable clk problems
        ARM: Kirkwood: Ensure runit clock always ticks.
        ARM: versatile: Don't use platform clock for Integrator & VE
        ARM: tegra: harmony: add regulator supply name and its input supply
      25918f98
    • Linus Torvalds's avatar
      Merge branch 'for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds · aa0b3b2b
      Linus Torvalds authored
      Pull LED subsystem update from Bryan Wu.
      
      * 'for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (50 commits)
        leds-lp8788: forgotten unlock at lp8788_led_work
        LEDS: propagate error codes in blinkm_detect()
        LEDS: memory leak in blinkm_led_common_set()
        leds: add new lp8788 led driver
        LEDS: add BlinkM RGB LED driver, documentation and update MAINTAINERS
        leds: max8997: Simplify max8997_led_set_mode implementation
        leds/leds-s3c24xx: use devm_gpio_request
        leds: convert Network Space v2 LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert DAC124S085 LED driver to devm_kzalloc()
        leds: convert LM3530 LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert TCA6507 LED driver to devm_kzalloc()
        leds: convert Freescale MC13783 LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert ADP5520 LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert PCA955x LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert Sun Fire LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert PCA9532 LED driver to devm_kzalloc()
        leds: convert LT3593 LED driver to devm_kzalloc()
        leds: convert Renesas TPU LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert LP5523 LED driver to devm_kzalloc() and cleanup error exit path
        leds: convert PCA9633 LED driver to devm_kzalloc()
        ...
      aa0b3b2b
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 6ee127b7
      Linus Torvalds authored
      Pull sparc updates from David Miller:
       "Nothing much this merge window for sparc.
      
        1) Fix FPU state management in sparc32, from Tkhai Kirill.
      
        2) More sparc32 mm layer code cleanups, largely more side effects of
           the sun4c support removal in the 3.5 From Sam Ravnborg.
      
        3) Remove unused code in sparc64, from Bjorn Helgaas and Kirill Tkhai.
      
        4) Some declaration and comment tidies in PROM support code, from
           Geert Uytterhoeven."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: (24 commits)
        sparc32, copy_thread: Clear TIF_USEDFPU flag of created task instead of current
        sparc32: delete dead code in show_mem()
        sparc32: move kmap_init() to highmem.c
        sparc32: move probe_memory() to srmmu.c
        sparc32: drop unused BAD_PAGE stuff
        sparc32: centralize all mmu context handling in srmmu.c
        sparc32: drop quicklist
        sparc32: drop sparc model check in paging_init
        sparc32: drop sparc_unmapped_base
        sparc32,leon: drop leon_init()
        sparc32: drop fixmap.h
        sparc32: fixmap.h cleanup
        sparc32: drop unused kmap_atomic_to_page
        sparc32: drop swapper_pg_dir
        sparc32: beautify srmmu_inherit_prom_mappings()
        sparc32: use void * in nocache get/free
        sparc32: fix coding-style in srmmu.c
        sparc32: sort includes in srmmu.c
        sparc32: define a few srmmu functions __init
        sparc64: remove unused function straddles_64bit_va_hole()
        ...
      6ee127b7
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 1e30c1b3
      Linus Torvalds authored
      Pull networking updates and fixes from David Miller:
      
      1) Reinstate the no-ref optimization for input route lookups in ipv4 to
         fix some routing cache removal perf regressions.
      
      2) Make TCP socket pre-demux work on ipv6 side too, from Eric Dumazet.
      
      3) Get RX hash value from correct place in be2net driver, from
         Sarveshwar Bandi.
      
      4) Validation of FIB cached routes missing critical check, from Eric
         Dumazet.
      
      5) EEH support in mlx4 driver, from Kleber Sacilotto de Souza.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (23 commits)
        ipv6: Early TCP socket demux
        ipv4: Fix input route performance regression.
        pch_gbe: vlan skb len fix
        pch_gbe: add extra clean tx
        pch_gbe: fix transmit watchdog timeout
        ixgbe: fix panic while dumping packets on Tx hang with IOMMU
        be2net: Fix to parse RSS hash from Receive completions correctly.
        net/mlx4_en: Limit the RFS filter IDs to be < RPS_NO_FILTER
        hyperv: Add error handling to rndis_filter_device_add()
        hyperv: Add a check for ring_size value
        ipv4: rt_cache_valid must check expired routes
        net/pch_gpe: Cannot disable ethernet autonegation
        qeth: repair crash in qeth_l3_vlan_rx_kill_vid()
        netiucv: cleanup attribute usage
        net: wiznet add missing HAS_IOMEM dependency
        be2net: Missing byteswap in be_get_fw_log_level causes oops on PowerPC
        mlx4: Add support for EEH error recovery
        cdc-ncm: tag Ericsson WWAN devices (eg F5521gw) with FLAG_WWAN
        wanmain: comparing array with NULL
        caif: fix NULL pointer check
        ...
      1e30c1b3
    • Stephen Rothwell's avatar
      Btrfs: using vmalloc and friends needs vmalloc.h · a1857ebe
      Stephen Rothwell authored
      On powerpc, we don't get the implicit vmalloc.h include, and as a result
      the build fails noisily:
      
        fs/btrfs/send.c: In function 'fs_path_free':
        fs/btrfs/send.c:185:4: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
        fs/btrfs/send.c: In function 'fs_path_ensure_buf':
        fs/btrfs/send.c:215:4: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
        fs/btrfs/send.c:215:12: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:225:12: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:233:13: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c: In function 'iterate_dir_item':
        fs/btrfs/send.c:900:10: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:909:11: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c: In function 'btrfs_ioctl_send':
        fs/btrfs/send.c:4463:17: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:4469:17: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:4475:2: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration]
        fs/btrfs/send.c:4475:20: warning: assignment makes pointer from integer without a cast [enabled by default]
        fs/btrfs/send.c:4483:21: warning: assignment makes pointer from integer without a cast [enabled by default]
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a1857ebe
    • Devendra Naga's avatar
      leds-lp8788: forgotten unlock at lp8788_led_work · d45bb116
      Devendra Naga authored
      at default case of switch we return with out unlocking the mutex.
      Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
      Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
      d45bb116
    • Dan Carpenter's avatar
      LEDS: propagate error codes in blinkm_detect() · 18d4a06f
      Dan Carpenter authored
      Use the error codes from the lower levels instead of -ENODEV.
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarJan-Simon Möller <jansimon.moeller@gmx.de>
      Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
      18d4a06f
    • Dan Carpenter's avatar
      LEDS: memory leak in blinkm_led_common_set() · 4d8729a1
      Dan Carpenter authored
      This can return without freeing the bl_work struct.  Also there was no
      check for allocation failure.
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Acked-by: default avatarJan-Simon Möller <jansimon.moeller@gmx.de>
      Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
      4d8729a1
  2. 26 Jul, 2012 29 commits