summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/usb3503.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-09 14:41:49 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 23:19:44 +0400
commit24455b09b4838cdc0165af0f24ca63ec9ad54e44 (patch)
tree67eae75e4d646a93fa94425c2fc492be2be063c1 /drivers/usb/misc/usb3503.c
parent900e06212df8bc20bcdcf3b71b4e2909287ce257 (diff)
downloadlinux-24455b09b4838cdc0165af0f24ca63ec9ad54e44.tar.xz
usb: misc: usb3503: Use gpio_set_value_cansleep()
The /RESET GPIO is not manipulated from atomic context so support GPIOs that can't be written from atomic context by using _cansleep(). Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/usb3503.c')
-rw-r--r--drivers/usb/misc/usb3503.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c
index 41b422824c87..2e9e100a182e 100644
--- a/drivers/usb/misc/usb3503.c
+++ b/drivers/usb/misc/usb3503.c
@@ -103,7 +103,7 @@ static int usb3503_clear_bits(struct i2c_client *client, char reg, char req)
static int usb3503_reset(int gpio_reset, int state)
{
if (gpio_is_valid(gpio_reset))
- gpio_set_value(gpio_reset, state);
+ gpio_set_value_cansleep(gpio_reset, state);
/* Wait T_HUBINIT == 4ms for hub logic to stabilize */
if (state)