| .. | .. |
|---|
| 19 | 19 | #include <linux/workqueue.h> |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | #include <linux/slab.h> |
|---|
| 22 | | -#include <linux/bootmem.h> |
|---|
| 22 | +#include <linux/memblock.h> |
|---|
| 23 | 23 | #include <linux/compat.h> |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | #include <asm/ccwdev.h> |
|---|
| .. | .. |
|---|
| 556 | 556 | * Pass input line to tty. |
|---|
| 557 | 557 | */ |
|---|
| 558 | 558 | static void |
|---|
| 559 | | -tty3270_read_tasklet(struct raw3270_request *rrq) |
|---|
| 559 | +tty3270_read_tasklet(unsigned long data) |
|---|
| 560 | 560 | { |
|---|
| 561 | + struct raw3270_request *rrq = (struct raw3270_request *)data; |
|---|
| 561 | 562 | static char kreset_data = TW_KR; |
|---|
| 562 | 563 | struct tty3270 *tp = container_of(rrq->view, struct tty3270, view); |
|---|
| 563 | 564 | char *input; |
|---|
| .. | .. |
|---|
| 652 | 653 | * Hang up the tty |
|---|
| 653 | 654 | */ |
|---|
| 654 | 655 | static void |
|---|
| 655 | | -tty3270_hangup_tasklet(struct tty3270 *tp) |
|---|
| 656 | +tty3270_hangup_tasklet(unsigned long data) |
|---|
| 656 | 657 | { |
|---|
| 658 | + struct tty3270 *tp = (struct tty3270 *)data; |
|---|
| 657 | 659 | tty_port_tty_hangup(&tp->port, true); |
|---|
| 658 | 660 | raw3270_put_view(&tp->view); |
|---|
| 659 | 661 | } |
|---|
| .. | .. |
|---|
| 752 | 754 | |
|---|
| 753 | 755 | tty_port_init(&tp->port); |
|---|
| 754 | 756 | timer_setup(&tp->timer, tty3270_update, 0); |
|---|
| 755 | | - tasklet_init(&tp->readlet, |
|---|
| 756 | | - (void (*)(unsigned long)) tty3270_read_tasklet, |
|---|
| 757 | + tasklet_init(&tp->readlet, tty3270_read_tasklet, |
|---|
| 757 | 758 | (unsigned long) tp->read); |
|---|
| 758 | | - tasklet_init(&tp->hanglet, |
|---|
| 759 | | - (void (*)(unsigned long)) tty3270_hangup_tasklet, |
|---|
| 759 | + tasklet_init(&tp->hanglet, tty3270_hangup_tasklet, |
|---|
| 760 | 760 | (unsigned long) tp); |
|---|
| 761 | 761 | INIT_WORK(&tp->resize_work, tty3270_resize_work); |
|---|
| 762 | 762 | |
|---|