本文整理汇总了C++中pcmcia_unregister_driver函数的典型用法代码示例。如果您正苦于以下问题:C++ pcmcia_unregister_driver函数的具体用法?C++ pcmcia_unregister_driver怎么用?C++ pcmcia_unregister_driver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pcmcia_unregister_driver函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: exit_parport_cs
static void __exit exit_parport_cs(void)
{
pcmcia_unregister_driver(&parport_cs_driver);
/* XXX: this really needs to move into generic code.. */
while (dev_list != NULL)
parport_detach(dev_list);
}
示例2: ixj_pcmcia_exit
static void ixj_pcmcia_exit(void)
{
pcmcia_unregister_driver(&ixj_driver);
/* XXX: this really needs to move into generic code.. */
while (dev_list != NULL)
ixj_detach(dev_list);
}
示例3: cleanup_module
void cleanup_module(void)
{
pcmcia_unregister_driver(&ni_mio_cs_driver);
#if 0
while (cur_dev != NULL)
cs_detach(cur_dev->handle);
#endif
comedi_driver_unregister(&driver_ni_mio_cs);
}
示例4: avmcs_exit
static void __exit avmcs_exit(void)
{
pcmcia_unregister_driver(&avmcs_driver);
/* XXX: this really needs to move into generic code.. */
while (dev_list != NULL) {
if (dev_list->state & DEV_CONFIG)
avmcs_release(dev_list);
avmcs_detach(dev_list);
}
}
示例5: atmel_cs_cleanup
static void atmel_cs_cleanup(void)
{
pcmcia_unregister_driver(&atmel_driver);
/* XXX: this really needs to move into generic code.. */
while (dev_list != NULL) {
if (dev_list->state & DEV_CONFIG)
atmel_release(dev_list);
atmel_detach(dev_list);
}
}
示例6: wl_adapter_cleanup_module
/*******************************************************************************
* wl_adapter_cleanup_module()
*******************************************************************************
*
* DESCRIPTION:
*
* Called by cleanup_module() to perform driver uninitialization.
*
* PARAMETERS:
*
* N/A
*
* RETURNS:
*
* N/A
*
******************************************************************************/
void wl_adapter_cleanup_module(void)
{
DBG_FUNC("wl_adapter_cleanup_module");
DBG_ENTER(DbgInfo);
DBG_TRACE(DbgInfo, "wl_adapter_cleanup_module() -- PCMCIA\n");
pcmcia_unregister_driver(&wlags49_driver);
DBG_LEAVE(DbgInfo);
return;
} /* wl_adapter_cleanup_module */
示例7: pcan_pccard_deinit
//****************************************************************************
// small interface to rest of driver, only register and deinit
void pcan_pccard_deinit(void)
{
DPRINTK(KERN_DEBUG "%s: pcan_pccard_deinit()\n", DEVICE_NAME);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
pcan_unlink_pccard();
#endif
#ifdef LINUX_24
unregister_pccard_driver(&pccard_info);
#else
if (pcan_drv.pccarddrv.drv.name)
{
// then it was registered
// unregister pccard parts, makes a plugout of registered devices
pcmcia_unregister_driver(&pcan_drv.pccarddrv);
}
#endif
}
示例8: avmcs_exit
static void __exit avmcs_exit(void)
{
pcmcia_unregister_driver(&avmcs_driver);
BUG_ON(dev_list != NULL);
}
示例9: exit_ide_cs
static void __exit exit_ide_cs(void)
{
pcmcia_unregister_driver(&ide_cs_driver);
}
示例10: exit_bluecard_cs
static void __exit exit_bluecard_cs(void)
{
pcmcia_unregister_driver(&bluecard_driver);
}
示例11: exit_spectrum_cs
static void __exit
exit_spectrum_cs(void)
{
pcmcia_unregister_driver(&orinoco_driver);
}
示例12: btuart_config
static int btuart_config(struct pcmcia_device *link)
{
btuart_info_t *info = link->priv;
int i;
int try;
/* First pass: look for a config entry that looks normal.
Two tries: without IO aliases, then with aliases */
for (try = 0; try < 2; try++)
if (!pcmcia_loop_config(link, btuart_check_config, &try))
goto found_port;
/* Second pass: try to find an entry that isn't picky about
its base address, then try to grab any standard serial port
address, and finally try to get any free port. */
if (!pcmcia_loop_config(link, btuart_check_config_notpicky, NULL))
goto found_port;
BT_ERR("No usable port range found");
goto failed;
found_port:
i = pcmcia_request_irq(link, btuart_interrupt);
if (i != 0)
goto failed;
i = pcmcia_enable_device(link);
if (i != 0)
goto failed;
if (btuart_open(info) != 0)
goto failed;
return 0;
failed:
btuart_release(link);
return -ENODEV;
}
static void btuart_release(struct pcmcia_device *link)
{
btuart_info_t *info = link->priv;
btuart_close(info);
pcmcia_disable_device(link);
}
static const struct pcmcia_device_id btuart_ids[] = {
/* don't use this driver. Use serial_cs + hci_uart instead */
PCMCIA_DEVICE_NULL
};
MODULE_DEVICE_TABLE(pcmcia, btuart_ids);
static struct pcmcia_driver btuart_driver = {
.owner = THIS_MODULE,
.name = "btuart_cs",
.probe = btuart_probe,
.remove = btuart_detach,
.id_table = btuart_ids,
};
static int __init init_btuart_cs(void)
{
return pcmcia_register_driver(&btuart_driver);
}
static void __exit exit_btuart_cs(void)
{
pcmcia_unregister_driver(&btuart_driver);
}
module_init(init_btuart_cs);
module_exit(exit_btuart_cs);
示例13: exit_elsa_cs
static void __exit exit_elsa_cs(void)
{
pcmcia_unregister_driver(&elsa_cs_driver);
}
示例14: avmcs_exit
static void __exit avmcs_exit(void)
{
pcmcia_unregister_driver(&avmcs_driver);
}
示例15: exit_labpc_cs
static void __exit exit_labpc_cs(void)
{
DEBUG(0, "ni_labpc: unloading\n");
pcmcia_unregister_driver(&labpc_cs_driver);
}