From e0ea0928d5b7779cd9c3dfb1aec4879ae35c0625 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Wed, 17 Feb 2016 11:00:37 +0000 Subject: [PATCH] Fix gpio includes of mt8173 platform to avoid collision. All files including plat/mediatek/mt8173/drivers/gpio/gpio.h were using system includes instead of user includes, which may cause the wrong version of the header to be included. Said includes have been changed to user includes to make sure that the included file is the wanted one. Change-Id: I29bdfe96fbd9a7900875e2357bbb43f3ea431fa5 --- plat/mediatek/mt8173/drivers/gpio/gpio.c | 2 +- plat/mediatek/mt8173/plat_pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/mediatek/mt8173/drivers/gpio/gpio.c b/plat/mediatek/mt8173/drivers/gpio/gpio.c index 20473b91..f19c9315 100644 --- a/plat/mediatek/mt8173/drivers/gpio/gpio.c +++ b/plat/mediatek/mt8173/drivers/gpio/gpio.c @@ -28,10 +28,10 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -#include #include #include #include +#include "gpio.h" enum { MAX_GPIO_REG_BITS = 16, diff --git a/plat/mediatek/mt8173/plat_pm.c b/plat/mediatek/mt8173/plat_pm.c index f28f8edc..be33c911 100644 --- a/plat/mediatek/mt8173/plat_pm.c +++ b/plat/mediatek/mt8173/plat_pm.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include @@ -49,6 +48,7 @@ #include #include #include +#include "drivers/gpio/gpio.h" struct core_context { unsigned long timer_data[8]; -- 2.30.2