diff options
Diffstat (limited to 'drivers/isdn/capi/capi.c')
| -rw-r--r-- | drivers/isdn/capi/capi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index 8a35029caca0..871b0cbca5e4 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
| @@ -1302,11 +1302,12 @@ static void capinc_tty_hangup(struct tty_struct *tty) | |||
| 1302 | #endif | 1302 | #endif |
| 1303 | } | 1303 | } |
| 1304 | 1304 | ||
| 1305 | static void capinc_tty_break_ctl(struct tty_struct *tty, int state) | 1305 | static int capinc_tty_break_ctl(struct tty_struct *tty, int state) |
| 1306 | { | 1306 | { |
| 1307 | #ifdef _DEBUG_TTYFUNCS | 1307 | #ifdef _DEBUG_TTYFUNCS |
| 1308 | printk(KERN_DEBUG "capinc_tty_break_ctl(%d)\n", state); | 1308 | printk(KERN_DEBUG "capinc_tty_break_ctl(%d)\n", state); |
| 1309 | #endif | 1309 | #endif |
| 1310 | return 0; | ||
| 1310 | } | 1311 | } |
| 1311 | 1312 | ||
| 1312 | static void capinc_tty_flush_buffer(struct tty_struct *tty) | 1313 | static void capinc_tty_flush_buffer(struct tty_struct *tty) |
| @@ -1552,7 +1553,8 @@ static int __init capi_init(void) | |||
| 1552 | return PTR_ERR(capi_class); | 1553 | return PTR_ERR(capi_class); |
| 1553 | } | 1554 | } |
| 1554 | 1555 | ||
| 1555 | device_create(capi_class, NULL, MKDEV(capi_major, 0), "capi"); | 1556 | device_create_drvdata(capi_class, NULL, MKDEV(capi_major, 0), NULL, |
| 1557 | "capi"); | ||
| 1556 | 1558 | ||
| 1557 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE | 1559 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE |
| 1558 | if (capinc_tty_init() < 0) { | 1560 | if (capinc_tty_init() < 0) { |
