]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: tegra: refactor probe handling
authorStephen Warren <swarren@nvidia.com>
Wed, 11 Apr 2012 18:53:09 +0000 (12:53 -0600)
committerStephen Warren <swarren@nvidia.com>
Wed, 18 Apr 2012 16:26:40 +0000 (10:26 -0600)
commit016edd8bb21638287c73b61f342634ac0925ac38
tree68fdb2a2580914f17b74374ad6b390027824c389
parent1c06e13a297cc020f5379e609591c0b144778c41
pinctrl: tegra: refactor probe handling

Rather than having a single tegra-pinctrl driver that determines whether
it's running on Tegra20 or Tegra30, instead have separate drivers for
each that call into utility functions to implement the majority of the
driver. This change is based on review feedback of the SPEAr pinctrl
driver, which had originally copied to Tegra driver structure.

This requires that the two drivers have unique names. Update a couple
spots in arch/arm/mach-tegra for the name change.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-tegra/board-pinmux.h
arch/arm/mach-tegra/devices.c
drivers/pinctrl/pinctrl-tegra.c
drivers/pinctrl/pinctrl-tegra.h
drivers/pinctrl/pinctrl-tegra20.c
drivers/pinctrl/pinctrl-tegra30.c