aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorPavan Savoy <pavan_savoy@ti.com>2011-08-10 11:18:30 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-22 17:13:31 -0400
commit5926cef26c72cd121266b000b8975e6373cbf2b3 (patch)
treec72ff1fe504baffe4bb60e1fb9cd37b8a8117d3f /drivers/misc
parent86ec67fd0a28c7f2b765e33aaf5b002d28c5f1fa (diff)
drivers:misc: ti-st: avoid a misleading dbg msg
Previously the private data of each protocol registered to use ST was used to determine whether the protocol was registered to use shared transport or otherwise. However, now a flag is_registered is maintained to identify whether a protocol intends to use ST. Upon closing of the UART the error message relevant to this lack of un-registration was misleading and this patch fixes that. Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ti-st/st_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index 54c91ffe4a91..c8e335db3451 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -717,7 +717,7 @@ static void st_tty_close(struct tty_struct *tty)
717 */ 717 */
718 spin_lock_irqsave(&st_gdata->lock, flags); 718 spin_lock_irqsave(&st_gdata->lock, flags);
719 for (i = ST_BT; i < ST_MAX_CHANNELS; i++) { 719 for (i = ST_BT; i < ST_MAX_CHANNELS; i++) {
720 if (st_gdata->list[i] != NULL) 720 if (st_gdata->is_registered[i] == true)
721 pr_err("%d not un-registered", i); 721 pr_err("%d not un-registered", i);
722 st_gdata->list[i] = NULL; 722 st_gdata->list[i] = NULL;
723 } 723 }