]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: arche-platform: fix incorrect gpio variable type
authorDavid Lin <dtwlin@google.com>
Tue, 8 Mar 2016 05:52:54 +0000 (21:52 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Mar 2016 14:21:21 +0000 (06:21 -0800)
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>
drivers/staging/greybus/arche-apb-ctrl.c
drivers/staging/greybus/arche-platform.c

index 55806bdf58981e1648cde91398d20bb0c20c9cc9..3a092a5b7fb856b345a97ec21ddf32a16f564c4a 100644 (file)
@@ -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;
index 64dd8a1ebe37d26e6c8b3fe9d931f9a214d39bf6..3293661d876a19bff26fc4273a4d3a2d0402276a 100644 (file)
@@ -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;