mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
ti-st: st_kim: use gpio_set_value_cansleep to fix warning
GPIO accessor functions may sleep. Signed-off-by: Jürg Billeter <j@bitron.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c0bd1b9e58
commit
513da46d4b
1 changed files with 5 additions and 5 deletions
|
@ -472,9 +472,9 @@ long st_kim_start(void *kim_data)
|
||||||
pdata->chip_enable(kim_gdata);
|
pdata->chip_enable(kim_gdata);
|
||||||
|
|
||||||
/* Configure BT nShutdown to HIGH state */
|
/* 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 */
|
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);
|
mdelay(100);
|
||||||
/* re-initialize the completion */
|
/* re-initialize the completion */
|
||||||
reinit_completion(&kim_gdata->ldisc_installed);
|
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 */
|
/* 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);
|
mdelay(1);
|
||||||
gpio_set_value(kim_gdata->nshutdown, GPIO_HIGH);
|
gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_HIGH);
|
||||||
mdelay(1);
|
mdelay(1);
|
||||||
gpio_set_value(kim_gdata->nshutdown, GPIO_LOW);
|
gpio_set_value_cansleep(kim_gdata->nshutdown, GPIO_LOW);
|
||||||
|
|
||||||
/* platform specific disable */
|
/* platform specific disable */
|
||||||
if (pdata->chip_disable)
|
if (pdata->chip_disable)
|
||||||
|
|
Loading…
Reference in a new issue