lkml.org 
[lkml]   [2011]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 12/12] arm/tegra: Remove temporary gpio/pinmux registration workaround
    Date
    This reverts commit "arm/tegra: Prevent duplicate gpio/pinmux pdev
    registration with dt"; board-dt.c no long calls harmony/
    seaboard_pinmux_init(), so the workaround is no longer needed.

    Signed-off-by: Stephen Warren <swarren@nvidia.com>
    ---
    arch/arm/mach-tegra/board-harmony-pinmux.c | 5 +----
    arch/arm/mach-tegra/board-seaboard-pinmux.c | 5 +----
    2 files changed, 2 insertions(+), 8 deletions(-)

    diff --git a/arch/arm/mach-tegra/board-harmony-pinmux.c b/arch/arm/mach-tegra/board-harmony-pinmux.c
    index 130018d..e99b456 100644
    --- a/arch/arm/mach-tegra/board-harmony-pinmux.c
    +++ b/arch/arm/mach-tegra/board-harmony-pinmux.c
    @@ -14,8 +14,6 @@
    *
    */

    -#include <asm/mach-types.h>
    -
    #include <linux/kernel.h>
    #include <linux/gpio.h>
    #include <mach/pinmux.h>
    @@ -163,8 +161,7 @@ static struct tegra_gpio_table gpio_table[] = {

    void harmony_pinmux_init(void)
    {
    - if (machine_is_harmony())
    - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices));
    + platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices));

    tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux));

    diff --git a/arch/arm/mach-tegra/board-seaboard-pinmux.c b/arch/arm/mach-tegra/board-seaboard-pinmux.c
    index bc4dc17..f092298 100644
    --- a/arch/arm/mach-tegra/board-seaboard-pinmux.c
    +++ b/arch/arm/mach-tegra/board-seaboard-pinmux.c
    @@ -12,8 +12,6 @@
    *
    */

    -#include <asm/mach-types.h>
    -
    #include <linux/kernel.h>
    #include <linux/init.h>
    #include <linux/gpio.h>
    @@ -178,8 +176,7 @@ static struct tegra_gpio_table gpio_table[] = {

    void __init seaboard_pinmux_init(void)
    {
    - if (machine_is_seaboard())
    - platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices));
    + platform_add_devices(pinmux_devices, ARRAY_SIZE(pinmux_devices));

    tegra_pinmux_config_table(seaboard_pinmux, ARRAY_SIZE(seaboard_pinmux));

    --
    1.7.0.4


    \
     
     \ /
      Last update: 2011-08-13 00:59    [W:4.362 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site