summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c12
1 files 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)