summaryrefslogtreecommitdiffstats
path: root/drivers/char/pc110pad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/pc110pad.c')
-rw-r--r--drivers/char/pc110pad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/pc110pad.c b/drivers/char/pc110pad.c
index 7a6b8cde0..d9c5ac453 100644
--- a/drivers/char/pc110pad.c
+++ b/drivers/char/pc110pad.c
@@ -492,7 +492,7 @@ static int close_pad(struct inode * inode, struct file * file)
{
fasync_pad(inode, file, 0);
if (--active)
- return;
+ return 0;
outb(0x30, current_params.io+2); /* switch off digitiser */
MOD_DEC_USE_COUNT;
return 0;
@@ -640,7 +640,7 @@ static struct miscdevice pc110_pad = {
};
-static int pc110pad_init(void)
+int pc110pad_init(void)
{
current_params = default_params;