aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-10-11 18:16:15 -0400
committerOlof Johansson <olof@lixom.net>2011-10-13 18:04:38 -0400
commit1ebc8496e8cc193706d7a7b375d0017a96e01277 (patch)
tree95bdb332c4ba691058475ffe44d775fca03c18f7 /arch/arm/mach-tegra
parentf62f548c1c04742f68c15e21f173712dd6633791 (diff)
arm/tegra: Convert pinmux driver to a platform device
Signed-off-by: Stephen Warren <swarren@nvidia.com> [olof: switch probe function to __devinit] Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/pinmux.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c
index f80d507671bc..fb212177c515 100644
--- a/arch/arm/mach-tegra/pinmux.c
+++ b/arch/arm/mach-tegra/pinmux.c
@@ -20,6 +20,7 @@
20#include <linux/errno.h> 20#include <linux/errno.h>
21#include <linux/spinlock.h> 21#include <linux/spinlock.h>
22#include <linux/io.h> 22#include <linux/io.h>
23#include <linux/platform_device.h>
23 24
24#include <mach/iomap.h> 25#include <mach/iomap.h>
25#include <mach/pinmux.h> 26#include <mach/pinmux.h>
@@ -665,6 +666,31 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co
665 } 666 }
666} 667}
667 668
669static int __devinit tegra_pinmux_probe(struct platform_device *pdev)
670{
671 return 0;
672}
673
674static struct of_device_id tegra_pinmux_of_match[] __devinitdata = {
675 { .compatible = "nvidia,tegra20-pinmux", },
676 { },
677};
678
679static struct platform_driver tegra_pinmux_driver = {
680 .driver = {
681 .name = "tegra-pinmux",
682 .owner = THIS_MODULE,
683 .of_match_table = tegra_pinmux_of_match,
684 },
685 .probe = tegra_pinmux_probe,
686};
687
688static int __init tegra_pinmux_init(void)
689{
690 return platform_driver_register(&tegra_pinmux_driver);
691}
692postcore_initcall(tegra_pinmux_init);
693
668#ifdef CONFIG_DEBUG_FS 694#ifdef CONFIG_DEBUG_FS
669 695
670#include <linux/debugfs.h> 696#include <linux/debugfs.h>