From b5901dd6ce7cf9c5c6ed2887f981b5e29440818f Mon Sep 17 00:00:00 2001 From: Adrian Alonso Date: Mon, 10 Dec 2012 18:40:38 -0600 Subject: [PATCH] ENGR00237364: board-mx6q_sabreauto fix adv7180 tvin powerdown * Fix adv7180 tvin powerdown function gpio power pin already exported in io-mux setup function no need to request/free gpio * Update copyrigth year 2013. Signed-off-by: Adrian Alonso --- arch/arm/mach-mx6/board-mx6q_sabreauto.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c index bd51ddddf84b..a90ade9ef876 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c +++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -621,16 +621,10 @@ static struct pca953x_platform_data max7310_u43_platdata = { static void adv7180_pwdn(int pwdn) { - int status = -1; - - status = gpio_request(SABREAUTO_VIDEOIN_PWR, "tvin-pwr"); - if (pwdn) - gpio_direction_output(SABREAUTO_VIDEOIN_PWR, 0); + gpio_set_value_cansleep(SABREAUTO_VIDEOIN_PWR, 0); else - gpio_direction_output(SABREAUTO_VIDEOIN_PWR, 1); - - gpio_free(SABREAUTO_VIDEOIN_PWR); + gpio_set_value_cansleep(SABREAUTO_VIDEOIN_PWR, 1); } static void mx6q_csi0_io_init(void) -- 2.39.5