RK3368 DDR: add support 3368 ddr change freq function
[firefly-linux-kernel-4.4.55.git] / drivers / mailbox / mailbox.c
index 9a937ef350680752eb4c5b4a70dfccd7d27d2f9f..afcb430508eceac7887ee436ec19c15fcfad89cd 100644 (file)
@@ -126,7 +126,7 @@ static void poll_txdone(unsigned long data)
 
        if (resched)
                mod_timer(&mbox->poll, jiffies +
-                               msecs_to_jiffies(mbox->period));
+                               msecs_to_jiffies(mbox->txpoll_period));
 }
 
 /**
@@ -252,8 +252,6 @@ int mbox_send_message(struct mbox_chan *chan, void *mssg)
 
        msg_submit(chan);
 
-       INIT_COMPLETION(chan->tx_complete);
-
        if (chan->txdone_method == TXDONE_BY_POLL)
                poll_txdone((unsigned long)chan->mbox);