diff options
author | David Lin <dtwlin@google.com> | 2016-03-07 21:52:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-08 06:21:21 -0800 |
commit | 7fe9301422444a1fca71bb8c4c0673fb44eb0f2d (patch) | |
tree | fa834d87936d9c4c293d3182b419c83779ca3891 /drivers/staging/greybus/arche-apb-ctrl.c | |
parent | 9fa3a9b8cb7e04b600166049424d01b428a251ad (diff) | |
download | op-kernel-dev-7fe9301422444a1fca71bb8c4c0673fb44eb0f2d.zip op-kernel-dev-7fe9301422444a1fca71bb8c4c0673fb44eb0f2d.tar.gz |
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>
Diffstat (limited to 'drivers/staging/greybus/arche-apb-ctrl.c')
-rw-r--r-- | drivers/staging/greybus/arche-apb-ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c index 55806bd..3a092a5 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; |