This source file includes following definitions.
- __umc_driver_register
- umc_driver_unregister
1
2
3
4
5
6
7 #include <linux/kernel.h>
8 #include <linux/export.h>
9 #include "include/umc.h"
10
11 int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
12 const char *mod_name)
13 {
14 umc_drv->driver.name = umc_drv->name;
15 umc_drv->driver.owner = module;
16 umc_drv->driver.mod_name = mod_name;
17 umc_drv->driver.bus = &umc_bus_type;
18
19 return driver_register(&umc_drv->driver);
20 }
21 EXPORT_SYMBOL_GPL(__umc_driver_register);
22
23
24
25
26
27 void umc_driver_unregister(struct umc_driver *umc_drv)
28 {
29 driver_unregister(&umc_drv->driver);
30 }
31 EXPORT_SYMBOL_GPL(umc_driver_unregister);