summaryrefslogtreecommitdiffstats
path: root/drivers/char/hvcs.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-12-02 12:21:43 +0100
committerPaul Mackerras <paulus@samba.org>2008-12-03 11:04:13 +0100
commit3d26825ec03f623f20ba860e6e6113ab2d0bb0f1 (patch)
tree3f7444eb256e82bb241874d433d72c88772096e2 /drivers/char/hvcs.c
parentdrivers/hvc: Add missing of_node_put (diff)
downloadlinux-3d26825ec03f623f20ba860e6e6113ab2d0bb0f1.tar.xz
linux-3d26825ec03f623f20ba860e6e6113ab2d0bb0f1.zip
powerpc: Make open count variables signed in hvcs/hvsi/hvc_console
Otherwise the tests for count < 0 will never be true. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/char/hvcs.c')
-rw-r--r--drivers/char/hvcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvcs.c b/drivers/char/hvcs.c
index 473d9b14439a..6e6eb445d374 100644
--- a/drivers/char/hvcs.c
+++ b/drivers/char/hvcs.c
@@ -269,7 +269,7 @@ struct hvcs_struct {
unsigned int index;
struct tty_struct *tty;
- unsigned int open_count;
+ int open_count;
/*
* Used to tell the driver kernel_thread what operations need to take