{
struct cyclic_info *cyclic;
- if (!gd->cyclic->cyclic_ready) {
+ if (!gd->cyclic) {
pr_debug("Cyclic IF not ready yet\n");
return NULL;
}
* schedule() might get called very early before the cyclic IF is
* ready. Make sure to only call cyclic_run() when it's initalized.
*/
- if (gd && gd->cyclic && gd->cyclic->cyclic_ready)
+ if (gd && gd->cyclic)
cyclic_run();
}
list_for_each_entry_safe(cyclic, tmp, &gd->cyclic->cyclic_list, list)
cyclic_unregister(cyclic);
- gd->cyclic->cyclic_ready = false;
return 0;
}
memset(gd->cyclic, '\0', size);
INIT_LIST_HEAD(&gd->cyclic->cyclic_list);
- gd->cyclic->cyclic_ready = true;
return 0;
}
* struct cyclic_drv - Cyclic driver internal data
*
* @cyclic_list: Cylic list node
- * @cyclic_ready: Flag if cyclic infrastructure is ready
*/
struct cyclic_drv {
struct list_head cyclic_list;
- bool cyclic_ready;
};
/**