Merge tag 'for-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power...
[linux-2.6-microblaze.git] / drivers / platform / chrome / cros_ec_spi.c
index debea5c..d092603 100644 (file)
@@ -709,9 +709,6 @@ static void cros_ec_spi_high_pri_release(void *worker)
 static int cros_ec_spi_devm_high_pri_alloc(struct device *dev,
                                           struct cros_ec_spi *ec_spi)
 {
-       struct sched_param sched_priority = {
-               .sched_priority = MAX_RT_PRIO / 2,
-       };
        int err;
 
        ec_spi->high_pri_worker =
@@ -728,11 +725,9 @@ static int cros_ec_spi_devm_high_pri_alloc(struct device *dev,
        if (err)
                return err;
 
-       err = sched_setscheduler_nocheck(ec_spi->high_pri_worker->task,
-                                        SCHED_FIFO, &sched_priority);
-       if (err)
-               dev_err(dev, "Can't set cros_ec high pri priority: %d\n", err);
-       return err;
+       sched_set_fifo(ec_spi->high_pri_worker->task);
+
+       return 0;
 }
 
 static int cros_ec_spi_probe(struct spi_device *spi)