1. 25 1月, 2013 3 次提交
  2. 22 1月, 2013 3 次提交
    • H
      gpio: pl061: set initcall level to module init · 5985d76c
      Haojian Zhuang 提交于
      Replace subsys initcall by module initcall level. Since pinctrl
      driver is already launched before gpio driver. It's unnecessary
      to set gpio driver in subsys init call level.
      Signed-off-by: NHaojian Zhuang <haojian.zhuang@linaro.org>
      Tested-by: NDinh Nguyen <dinguyen@altera.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5985d76c
    • S
      gpio: devm_gpio_* support should not depend on GPIOLIB · 6a89a314
      Shawn Guo 提交于
      Some architectures (e.g. blackfin) provide gpio API without requiring
      GPIOLIB support (ARCH_WANT_OPTIONAL_GPIOLIB).  devm_gpio_* functions
      should also work for these architectures, since they do not really
      depend on GPIOLIB.
      
      Add a new option GPIO_DEVRES (enabled by default) to control the build
      of devres.c.  It also removes the empty version of devm_gpio_*
      functions for !GENERIC_GPIO build from linux/gpio.h, and moves the
      function declarations from asm-generic/gpio.h into linux/gpio.h.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      6a89a314
    • S
      gpio: fix warning of 'struct gpio_chip' declaration · d59b4eaa
      Shawn Guo 提交于
      The struct gpio_chip is only defined inside #ifdef CONFIG_GPIOLIB,
      but it's referenced by gpiochip_add_pin_range() and
      gpiochip_remove_pin_ranges() which are outside #ifdef CONFIG_GPIOLIB.
      Thus, we see the following warning when building blackfin image, where
      GPIOLIB is not required.
      
        CC      arch/blackfin/kernel/bfin_gpio.o
        CC      init/version.o
      In file included from arch/blackfin/include/asm/gpio.h:321,
                       from arch/blackfin/kernel/bfin_gpio.c:15:
      include/asm-generic/gpio.h:298: warning: 'struct gpio_chip' declared inside parameter list
      include/asm-generic/gpio.h:298: warning: its scope is only this definition or declaration, which is probably not what you want
      include/asm-generic/gpio.h:304: warning: 'struct gpio_chip' declared inside parameter list
      
      Move pinctrl trunk into #ifdef CONFIG_GPIOLIB to fix the warning,
      since it appears that pinctrl gpio range support depends on GPIOLIB.
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      d59b4eaa
  3. 17 1月, 2013 2 次提交
  4. 10 1月, 2013 1 次提交
  5. 22 12月, 2012 31 次提交