From 29e74f8bd71e70f5fe97685ba2cdf12b78791883 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 11 Feb 2014 18:07:12 +0100 Subject: ARM: mvebu: use GPIO DT defines in Armada 370/XP boards Instead of harcoding 0 and 1 for the gpio specifications in the Armada 370/XP boards, use the header file and its GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW definitions. Signed-off-by: Thomas Petazzoni Acked-by: Gregory CLEMENT Signed-off-by: Jason Cooper --- arch/arm/boot/dts/armada-370-rd.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/arm/boot/dts/armada-370-rd.dts') diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index abbb807459d2..c28865d2d7da 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts @@ -12,6 +12,7 @@ */ /dts-v1/; +#include #include "armada-370.dtsi" / { @@ -101,7 +102,7 @@ button@1 { label = "Software Button"; linux,code = <116>; - gpios = <&gpio0 6 1>; + gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; }; -- cgit