aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/con3270.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/con3270.c')
-rw-r--r--drivers/s390/char/con3270.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c
index be3e3c1206c2..fd2146bcc0ad 100644
--- a/drivers/s390/char/con3270.c
+++ b/drivers/s390/char/con3270.c
@@ -69,7 +69,7 @@ static struct con3270 *condev;
69#define CON_UPDATE_STATUS 4 /* Update status line. */ 69#define CON_UPDATE_STATUS 4 /* Update status line. */
70#define CON_UPDATE_ALL 8 /* Recreate screen. */ 70#define CON_UPDATE_ALL 8 /* Recreate screen. */
71 71
72static void con3270_update(struct con3270 *); 72static void con3270_update(struct timer_list *);
73 73
74/* 74/*
75 * Setup timeout for a device. On timeout trigger an update. 75 * Setup timeout for a device. On timeout trigger an update.
@@ -205,8 +205,9 @@ con3270_write_callback(struct raw3270_request *rq, void *data)
205 * Update console display. 205 * Update console display.
206 */ 206 */
207static void 207static void
208con3270_update(struct con3270 *cp) 208con3270_update(struct timer_list *t)
209{ 209{
210 struct con3270 *cp = from_timer(cp, t, timer);
210 struct raw3270_request *wrq; 211 struct raw3270_request *wrq;
211 char wcc, prolog[6]; 212 char wcc, prolog[6];
212 unsigned long flags; 213 unsigned long flags;
@@ -552,7 +553,7 @@ con3270_flush(void)
552 con3270_update_status(cp); 553 con3270_update_status(cp);
553 while (cp->update_flags != 0) { 554 while (cp->update_flags != 0) {
554 spin_unlock_irqrestore(&cp->view.lock, flags); 555 spin_unlock_irqrestore(&cp->view.lock, flags);
555 con3270_update(cp); 556 con3270_update(&cp->timer);
556 spin_lock_irqsave(&cp->view.lock, flags); 557 spin_lock_irqsave(&cp->view.lock, flags);
557 con3270_wait_write(cp); 558 con3270_wait_write(cp);
558 } 559 }
@@ -623,8 +624,7 @@ con3270_init(void)
623 624
624 INIT_LIST_HEAD(&condev->lines); 625 INIT_LIST_HEAD(&condev->lines);
625 INIT_LIST_HEAD(&condev->update); 626 INIT_LIST_HEAD(&condev->update);
626 setup_timer(&condev->timer, (void (*)(unsigned long)) con3270_update, 627 timer_setup(&condev->timer, con3270_update, 0);
627 (unsigned long) condev);
628 tasklet_init(&condev->readlet, 628 tasklet_init(&condev->readlet,
629 (void (*)(unsigned long)) con3270_read_tasklet, 629 (void (*)(unsigned long)) con3270_read_tasklet,
630 (unsigned long) condev->read); 630 (unsigned long) condev->read);