struct device_driver drv;
struct bus_type bus;
struct class *class;
- struct list_head mod_list;
+ struct list_head comp_list;
} mc;
#define to_driver(d) container_of(d, struct mostcore, drv);
{
struct core_component *aim;
- list_for_each_entry(aim, &mc.mod_list, list) {
+ list_for_each_entry(aim, &mc.comp_list, list) {
if (!strcmp(aim->name, name))
return aim;
}
struct core_component *aim;
int offs = 0;
- list_for_each_entry(aim, &mc.mod_list, list) {
+ list_for_each_entry(aim, &mc.comp_list, list) {
offs += snprintf(buf + offs, PAGE_SIZE - offs, "%s\n",
aim->name);
}
pr_err("Bad driver\n");
return -EINVAL;
}
- list_add_tail(&aim->list, &mc.mod_list);
+ list_add_tail(&aim->list, &mc.comp_list);
pr_info("registered new application interfacing module %s\n", aim->name);
return 0;
}
int err;
pr_info("init()\n");
- INIT_LIST_HEAD(&mc.mod_list);
+ INIT_LIST_HEAD(&mc.comp_list);
ida_init(&mdev_id);
mc.bus.name = "most",