dev_err(&svc->dev, "Resetting the greybus network, watch out!!!\n");
INIT_DELAYED_WORK(&reset_work, greybus_reset);
- queue_delayed_work(system_wq, &reset_work, HZ / 2);
+ schedule_delayed_work(&reset_work, HZ / 2);
/*
* Disable ourselves, we don't want to trip again unless
/* resubmit our work to happen again, if we are still "alive" */
if (watchdog->enabled)
- queue_delayed_work(system_wq, &watchdog->work,
- SVC_WATCHDOG_PERIOD);
+ schedule_delayed_work(&watchdog->work, SVC_WATCHDOG_PERIOD);
}
int gb_svc_watchdog_create(struct gb_svc *svc)
return 0;
watchdog->enabled = true;
- queue_delayed_work(system_wq, &watchdog->work,
- SVC_WATCHDOG_PERIOD);
+ schedule_delayed_work(&watchdog->work, SVC_WATCHDOG_PERIOD);
return 0;
}