diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2011-08-10 11:18:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-22 17:13:35 -0400 |
commit | 651d62a8b0378b911f083a1712d9d228894f46d8 (patch) | |
tree | 5fbd4773db4d0ef299b7f1337bb795ee4535c008 /drivers/misc/ti-st | |
parent | 76ff0e64d42fac59fb756536342a3d3f3e4e8833 (diff) |
drivers:misc: ti-st: fix unexpected UART close
If suppose the UIM were to die and hence UART were to close when the
Bluetooth/FM or GPS is turned on, prep the ST for a state where-in if
the UIM comes back up, Bluetooth/FM/GPS can be turned on.
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r-- | drivers/misc/ti-st/st_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index 1f973ce3043..ba168a7d54d 100644 --- a/drivers/misc/ti-st/st_core.c +++ b/drivers/misc/ti-st/st_core.c | |||
@@ -727,6 +727,7 @@ static void st_tty_close(struct tty_struct *tty) | |||
727 | if (st_gdata->is_registered[i] == true) | 727 | if (st_gdata->is_registered[i] == true) |
728 | pr_err("%d not un-registered", i); | 728 | pr_err("%d not un-registered", i); |
729 | st_gdata->list[i] = NULL; | 729 | st_gdata->list[i] = NULL; |
730 | st_gdata->is_registered[i] = false; | ||
730 | } | 731 | } |
731 | st_gdata->protos_registered = 0; | 732 | st_gdata->protos_registered = 0; |
732 | spin_unlock_irqrestore(&st_gdata->lock, flags); | 733 | spin_unlock_irqrestore(&st_gdata->lock, flags); |