aufs: policies for multiple writable branches, from aufs2.2-3.0
[zen-stable.git] / drivers / uwb / umc-drv.c
blob26d0ae1816bdd08fc34b86d89ea0ffe3b799946d
1 /*
2 * UWB Multi-interface Controller driver management.
4 * Copyright (C) 2007 Cambridge Silicon Radio Ltd.
6 * This file is released under the GNU GPL v2.
7 */
8 #include <linux/kernel.h>
9 #include <linux/export.h>
10 #include <linux/uwb/umc.h>
12 int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
13 const char *mod_name)
15 umc_drv->driver.name = umc_drv->name;
16 umc_drv->driver.owner = module;
17 umc_drv->driver.mod_name = mod_name;
18 umc_drv->driver.bus = &umc_bus_type;
20 return driver_register(&umc_drv->driver);
22 EXPORT_SYMBOL_GPL(__umc_driver_register);
24 /**
25 * umc_driver_register - unregister a UMC capabiltity driver.
26 * @umc_drv: pointer to the driver.
28 void umc_driver_unregister(struct umc_driver *umc_drv)
30 driver_unregister(&umc_drv->driver);
32 EXPORT_SYMBOL_GPL(umc_driver_unregister);