projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5889919
)
MLK-14498-11 reset: gpio-reset: use the cansleep variant of the GPIO API
author
Andy Duan
<fugang.duan@nxp.com>
Wed, 22 Mar 2017 03:33:38 +0000
(11:33 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:40 +0000
(15:21 -0500)
Use the cansleep variant of the GPIO API.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/reset/gpio-reset.c
patch
|
blob
|
history
diff --git
a/drivers/reset/gpio-reset.c
b/drivers/reset/gpio-reset.c
index
4cb9929
..
3049b22
100644
(file)
--- a/
drivers/reset/gpio-reset.c
+++ b/
drivers/reset/gpio-reset.c
@@
-32,7
+32,7
@@
static void gpio_reset_set(struct reset_controller_dev *rcdev, int asserted)
if (drvdata->active_low)
value = !value;
- gpio_set_value(drvdata->gpio, value);
+ gpio_set_value
_cansleep
(drvdata->gpio, value);
}
static int gpio_reset(struct reset_controller_dev *rcdev, unsigned long id)