1. 27 May, 2014 3 commits
    • Michael Stickel's avatar
      gpio: mcp23s08: fixed count variable for devicetree probing · 3e3bed91
      Michael Stickel authored
      Fixed missing increase of count variable for devicetree path in driver
      probing.
      
      The gpio-mcp23s08 driver has two paths for getting the platform
      registration information. One for the classic platform initialization
      and one for openfirmware devicetree based initialization. The devicetree
      based path is missing the increase of the count variable, which results
      in the count variable to become negative in the later use, where it is
      decreased. The count variable is used as an index into a vector. This
      results in accessing invalid memory space and can result in an exception.
      
      Tested this with an AM3352 SoC with two mcp23s17 on two chip selects as
      well as on a shared chip select.
      Signed-off-by: default avatarMichael Stickel <ms@mycable.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      3e3bed91
    • Jean Delvare's avatar
      gpio: Add run-time dependencies to R-Car driver · 821e85f2
      Jean Delvare authored
      The Renesas R-Car GPIO driver is only useful on shmobile unless build
      testing.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Cc: Magnus Damm <damm@opensource.se>
      Cc: Alexandre Courbot <gnurou@gmail.com>
      Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      821e85f2
    • Linus Walleij's avatar
      gpio: pch: add slab include · 349b6c53
      Linus Walleij authored
      After change 3ff35cbc
      "gpio-pch: Fix Kconfig dependencies"
      which enabled COMPILE_TEST as an alternative for the PCH
      driver, we get build failures like this:
      
      drivers/gpio/gpio-pch.c: In function 'pch_gpio_probe':
      drivers/gpio/gpio-pch.c:359:2: error: implicit declaration
      of function 'kzalloc' [-Werror=implicit-function-declaration]
      drivers/gpio/gpio-pch.c:359:7: warning: assignment makes
      pointer from integer without a cast [enabled by default]
      drivers/gpio/gpio-pch.c:442:2: error: implicit declaration
      of function 'kfree' [-Werror=implicit-function-declaration]
      
      Fix this by including <linux/slab.h> explicitly.
      
      Cc: Jean Delvare <jdelvare@suse.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      349b6c53
  2. 23 May, 2014 4 commits
  3. 21 May, 2014 1 commit
    • Alexandre Courbot's avatar
      gpio: make of_get_named_gpiod_flags() private · f01d9075
      Alexandre Courbot authored
      of_get_named_gpiod_flags() is visible and directly usable by GPIO
      consumers, but it really should not as the gpiod interface relies
      on the simpler gpiod_get() to provide properly-configured GPIOs.
      
      of_get_named_gpiod_flags() is just used internally by gpiolib to
      implement gpiod_get(), and by the old of_get_named_gpio_flags()
      function, therefore it makes sense to make it gpiolib-private.
      
      As a side-effect, the unused (and unneeded) of_get_gpiod_flags()
      inline function is also removed, and of_get_named_gpio_flags() is moved
      from a static inline function to a regular one in gpiolib-of.c
      
      This results in all references to gpiod_* functions in of_gpio.h being
      gone, which is the way it should be since this file is part of the old
      integer GPIO interface.
      
      Changes since v1:
      - Fixed compilation error when CONFIG_OF_GPIO is not defined
      - Fixed warning due to of_gpio_flags enum not being declared
        in private gpiolib.h header
      Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      f01d9075
  4. 16 May, 2014 6 commits
  5. 13 May, 2014 1 commit
  6. 09 May, 2014 25 commits