MLK-14498-11 reset: gpio-reset: use the cansleep variant of the GPIO API
authorAndy Duan <fugang.duan@nxp.com>
Wed, 22 Mar 2017 03:33:38 +0000 (11:33 +0800)
committerNitin 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

index 4cb9929..3049b22 100644 (file)
@@ -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)