]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00237364: board-mx6q_sabreauto fix adv7180 tvin powerdown
authorAdrian Alonso <aalonso@freescale.com>
Tue, 11 Dec 2012 00:40:38 +0000 (18:40 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:50 +0000 (08:35 +0200)
* 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 <aalonso@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabreauto.c

index bd51ddddf84b9c58c149c3e28674b9f905242429..a90ade9ef87614db49d5e7e30f79099fb7f2079b 100644 (file)
@@ -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)