Lines Matching full:foo*
115 static const struct mcb_device_id foo_ids[] = {
119 MODULE_DEVICE_TABLE(mcb, foo_ids);
121 static struct mcb_driver foo_driver = {
123 .name = "foo-bar",
126 .probe = foo_probe,
127 .remove = foo_remove,
128 .id_table = foo_ids,
138 static init foo_probe(struct mcb_device *mdev, const struct mcb_device_id *id);
139 static void foo_remove(struct mcb_device *mdev);
143 When the kernel is booted or your foo driver module is inserted, you have to
148 static int __init foo_init(void)
150 return mcb_register_driver(&foo_driver);
152 module_init(foo_init);
154 static void __exit foo_exit(void)
156 mcb_unregister_driver(&foo_driver);
158 module_exit(foo_exit);
163 module_mcb_driver(foo_driver);