diff --git a/drivers/mxc/hdp-cec/imx-hdp-cec.c b/drivers/mxc/hdp-cec/imx-hdp-cec.c index e1aea1f13762..068ae8e82541 100644 --- a/drivers/mxc/hdp-cec/imx-hdp-cec.c +++ b/drivers/mxc/hdp-cec/imx-hdp-cec.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -173,8 +174,10 @@ static int cec_poll_worker(void *_cec) int num_rx_msgs, i; int sts; + set_freezable(); + for (;;) { - if (kthread_should_stop()) + if (kthread_freezable_should_stop(NULL)) break; /* Check TX State */