]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 13 Apr 2012 17:28:06 +0000 (11:28 -0600)
commita4c07388e9fe6a3c2eb339d57a49a6c0efda816a
treedbcfe132c30d02e01128356e94959138a9923462
parent43a15e5b5510e8e8213f98645b64ada5589a1fde
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