ti-st: st_kim: use gpio_set_value_cansleep to fix warning
authorJürg Billeter <j@bitron.ch>
Wed, 24 Jun 2015 10:24:06 +0000 (12:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 20:24:36 +0000 (13:24 -0700)
GPIO accessor functions may sleep.

Signed-off-by: Jürg Billeter <j@bitron.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_kim.c

index c828282af38a634b601bf83579e5ba68682067ae..71b64550b591840ef1712f09f3f93a107d04e2ae 100644 (file)
@@ -472,9 +472,9 @@ long st_kim_start(void *kim_data)
                        pdata->chip_enable(kim_gdata);
 
                /* Configure BT nShutdown to HIGH state */
-               gpio_set_value(kim_gdata->nshutdown, GPIO_LOW);
+               gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_LOW);
                mdelay(5);      /* FIXME: a proper toggle */
-               gpio_set_value(kim_gdata->nshutdown, GPIO_HIGH);
+               gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_HIGH);
                mdelay(100);
                /* re-initialize the completion */
                reinit_completion(&kim_gdata->ldisc_installed);
@@ -550,11 +550,11 @@ long st_kim_stop(void *kim_data)
        }
 
        /* By default configure BT nShutdown to LOW state */
-       gpio_set_value(kim_gdata->nshutdown, GPIO_LOW);
+       gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_LOW);
        mdelay(1);
-       gpio_set_value(kim_gdata->nshutdown, GPIO_HIGH);
+       gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_HIGH);
        mdelay(1);
-       gpio_set_value(kim_gdata->nshutdown, GPIO_LOW);
+       gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_LOW);
 
        /* platform specific disable */
        if (pdata->chip_disable)