lkml.org 
[lkml]   [2011]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v2 10/13] arm/tegra: Convert pinmux driver to a platform device
    Date
    Signed-off-by: Stephen Warren <swarren@nvidia.com>
    ---
    arch/arm/mach-tegra/pinmux.c | 20 ++++++++++++++++++++
    1 files changed, 20 insertions(+), 0 deletions(-)

    diff --git a/arch/arm/mach-tegra/pinmux.c b/arch/arm/mach-tegra/pinmux.c
    index f80d507..ed316f9 100644
    --- a/arch/arm/mach-tegra/pinmux.c
    +++ b/arch/arm/mach-tegra/pinmux.c
    @@ -20,6 +20,7 @@
    #include <linux/errno.h>
    #include <linux/spinlock.h>
    #include <linux/io.h>
    +#include <linux/platform_device.h>

    #include <mach/iomap.h>
    #include <mach/pinmux.h>
    @@ -665,6 +666,25 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co
    }
    }

    +static int __init tegra_pinmux_probe(struct platform_device *pdev)
    +{
    + return 0;
    +}
    +
    +static struct platform_driver tegra_pinmux_driver = {
    + .driver = {
    + .name = "tegra-pinmux",
    + .owner = THIS_MODULE,
    + },
    + .probe = tegra_pinmux_probe,
    +};
    +
    +static int __init tegra_pinmux_init(void)
    +{
    + return platform_driver_register(&tegra_pinmux_driver);
    +}
    +postcore_initcall(tegra_pinmux_init);
    +
    #ifdef CONFIG_DEBUG_FS

    #include <linux/debugfs.h>
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2011-08-15 22:33    [W:0.019 / U:65.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site