}
 }
 
-static void fwtty_txn_constructor(void *this)
-{
-       struct fwtty_transaction *txn = this;
-
-       init_timer(&txn->fw_txn.split_timeout_timer);
-}
-
 static void fwtty_common_callback(struct fw_card *card, int rcode,
                                  void *payload, size_t len, void *cb_data)
 {
                (*port->fwcon_ops->notify)(FWCON_NOTIFY_DETACH, port->con_data);
 }
 
-static void fwserial_plug_timeout(unsigned long data)
+static void fwserial_plug_timeout(struct timer_list *t)
 {
-       struct fwtty_peer *peer = (struct fwtty_peer *)data;
+       struct fwtty_peer *peer = from_timer(peer, t, timer);
        struct fwtty_port *port;
 
        spin_lock_bh(&peer->lock);
 
        fill_plug_req(pkt, peer->port);
 
-       setup_timer(&peer->timer, fwserial_plug_timeout, (unsigned long)peer);
        mod_timer(&peer->timer, jiffies + VIRT_CABLE_PLUG_TIMEOUT);
        spin_unlock_bh(&peer->lock);
 
        spin_lock_init(&peer->lock);
        peer->port = NULL;
 
-       init_timer(&peer->timer);
+       timer_setup(&peer->timer, fwserial_plug_timeout, 0);
        INIT_WORK(&peer->work, fwserial_peer_workfn);
        INIT_DELAYED_WORK(&peer->connect, fwserial_auto_connect);
 
 
        fwtty_txn_cache = kmem_cache_create("fwtty_txn_cache",
                                            sizeof(struct fwtty_transaction),
-                                           0, 0, fwtty_txn_constructor);
+                                           0, 0, NULL);
        if (!fwtty_txn_cache) {
                err = -ENOMEM;
                goto unregister_loop;