1. 15 10月, 2012 1 次提交
    • A
      pinctrl: samsung: use __devinit section for init code · 47dbec59
      Arnd Bergmann 提交于
      The samsung pinctrl driver has a probe function that is
      __devinit and that calls a lot of other functions that are
      marked __init, which kbuild complains about.
      
      Marking everything __devinit means that the code does not
      discarded when CONFIG_HOTPLUG is set, which is a little
      more wasteful, but also more consistent
      
      Without this patch, building exynos_defconfig results in:
      
      WARNING: drivers/pinctrl/built-in.o(.devinit.text+0x124): Section mismatch in reference from the function samsung_pinctrl_probe() to the function .init.text:samsung_gpiolib_register()
      The function __devinit samsung_pinctrl_probe() references
      a function __init samsung_gpiolib_register().
      If samsung_gpiolib_register is only used by samsung_pinctrl_probe then
      annotate samsung_gpiolib_register with a matching annotation.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Thomas Abraham <thomas.abraham@linaro.org>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      47dbec59
  2. 21 9月, 2012 1 次提交
  3. 07 9月, 2012 1 次提交
    • T
      pinctrl: add samsung pinctrl and gpiolib driver · 30574f0d
      Thomas Abraham 提交于
      Add a new device tree enabled pinctrl and gpiolib driver for Samsung
      SoC's. This driver provides a common and extensible framework for all
      Samsung SoC's to interface with the pinctrl and gpiolib subsystems. This
      driver supports only device tree based instantiation and hence can be
      used only on those Samsung platforms that have device tree enabled.
      
      This driver is split into two parts: the pinctrl interface and the gpiolib
      interface. The pinctrl interface registers pinctrl devices with the pinctrl
      subsystem and gpiolib interface registers gpio chips with the gpiolib
      subsystem. The information about the pins, pin groups, pin functions and
      gpio chips, which are SoC specific, are parsed from device tree node.
      Signed-off-by: NThomas Abraham <thomas.abraham@linaro.org>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      30574f0d