diff options
Diffstat (limited to 'drivers/misc/ti-st/st_core.c')
-rw-r--r-- | drivers/misc/ti-st/st_core.c | 2 |
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 | } |