Merge tag 'mailbox-v6.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar...
[linux-2.6-block.git] / drivers / mailbox / mtk-cmdq-mailbox.c
index ead2200f39ba0354ec94569a9bedf3964be14207..4aa394e91109c8c8369c08865ce5ebcfaa8797b7 100644 (file)
@@ -465,7 +465,7 @@ static void cmdq_mbox_shutdown(struct mbox_chan *chan)
        struct cmdq_task *task, *tmp;
        unsigned long flags;
 
-       WARN_ON(pm_runtime_get_sync(cmdq->mbox.dev));
+       WARN_ON(pm_runtime_get_sync(cmdq->mbox.dev) < 0);
 
        spin_lock_irqsave(&thread->chan->lock, flags);
        if (list_empty(&thread->task_busy_list))
@@ -765,6 +765,7 @@ static const struct of_device_id cmdq_of_ids[] = {
        {.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195},
        {}
 };
+MODULE_DEVICE_TABLE(of, cmdq_of_ids);
 
 static struct platform_driver cmdq_drv = {
        .probe = cmdq_probe,