From 7b1bdbf890f28d39dd65b097f280169ccd39cf23 Mon Sep 17 00:00:00 2001 From: Pavan Savoy Date: Wed, 10 Aug 2011 10:18:30 -0500 Subject: [PATCH] --- yaml --- r: 263402 b: refs/heads/master c: 5926cef26c72cd121266b000b8975e6373cbf2b3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/misc/ti-st/st_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f385676190cf..ba07a8d20e13 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 86ec67fd0a28c7f2b765e33aaf5b002d28c5f1fa +refs/heads/master: 5926cef26c72cd121266b000b8975e6373cbf2b3 diff --git a/trunk/drivers/misc/ti-st/st_core.c b/trunk/drivers/misc/ti-st/st_core.c index 54c91ffe4a91..c8e335db3451 100644 --- a/trunk/drivers/misc/ti-st/st_core.c +++ b/trunk/drivers/misc/ti-st/st_core.c @@ -717,7 +717,7 @@ static void st_tty_close(struct tty_struct *tty) */ spin_lock_irqsave(&st_gdata->lock, flags); for (i = ST_BT; i < ST_MAX_CHANNELS; i++) { - if (st_gdata->list[i] != NULL) + if (st_gdata->is_registered[i] == true) pr_err("%d not un-registered", i); st_gdata->list[i] = NULL; }