From: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
Date: Thu, 23 Aug 2012 15:31:34 +0000 (+0530)
Subject: mx6qarm2:Use IMX_GPIO_NR macro
X-Git-Tag: v2025.01-rc5-pxa1908~17399
X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=acbdea2ece9b2727c5d4424fb1d0d7b6684c50e6;p=u-boot.git

mx6qarm2:Use IMX_GPIO_NR macro

Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
Acked-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
---

diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c
index 340c4c4393..e987ab0f2b 100644
--- a/board/freescale/mx6qarm2/mx6qarm2.c
+++ b/board/freescale/mx6qarm2/mx6qarm2.c
@@ -126,8 +126,8 @@ int board_mmc_getcd(struct mmc *mmc)
 	int ret;
 
 	if (cfg->esdhc_base == USDHC3_BASE_ADDR) {
-		gpio_direction_input(171); /*GPIO6_11*/
-		ret = !gpio_get_value(171);
+		gpio_direction_input(IMX_GPIO_NR(6, 11));
+		ret = !gpio_get_value(IMX_GPIO_NR(6, 11));
 	} else /* Don't have the CD GPIO pin on board */
 		ret = 1;