1. 27 5月, 2014 1 次提交
    • L
      gpio: pch: add slab include · 349b6c53
      Linus Walleij 提交于
      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: NLinus Walleij <linus.walleij@linaro.org>
      349b6c53
  2. 23 5月, 2014 3 次提交
  3. 21 5月, 2014 1 次提交
    • A
      gpio: make of_get_named_gpiod_flags() private · f01d9075
      Alexandre Courbot 提交于
      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: NAlexandre Courbot <acourbot@nvidia.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      f01d9075
  4. 16 5月, 2014 5 次提交
  5. 09 5月, 2014 29 次提交
  6. 04 5月, 2014 1 次提交