From: David Lin <dtwlin@google.com>
Date: Tue, 8 Mar 2016 05:52:54 +0000 (-0800)
Subject: greybus: arche-platform: fix incorrect gpio variable type
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7fe9301422444a1fca71bb8c4c0673fb44eb0f2d;p=linux.git

greybus: arche-platform: fix incorrect gpio variable type

GPIO number obtained from of_get_named_gpio() should be signed to allow
error handling.

Testing Done:
Built & booted on EVT1.5

Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
---

diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c
index 55806bdf58981..3a092a5b7fb85 100644
--- a/drivers/staging/greybus/arche-apb-ctrl.c
+++ b/drivers/staging/greybus/arche-apb-ctrl.c
@@ -37,7 +37,7 @@ struct arche_apb_ctrl_drvdata {
 	struct regulator *vcore;
 	struct regulator *vio;
 
-	unsigned int clk_en_gpio;
+	int clk_en_gpio;
 	struct clk *clk;
 
 	struct pinctrl *pinctrl;
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
index 64dd8a1ebe37d..3293661d876a1 100644
--- a/drivers/staging/greybus/arche-platform.c
+++ b/drivers/staging/greybus/arche-platform.c
@@ -44,7 +44,7 @@ struct arche_platform_drvdata {
 
 	enum arche_platform_state state;
 
-	unsigned int svc_refclk_req;
+	int svc_refclk_req;
 	struct clk *svc_ref_clk;
 
 	struct pinctrl *pinctrl;