本文整理汇总了C++中pnp_unregister_driver函数的典型用法代码示例。如果您正苦于以下问题:C++ pnp_unregister_driver函数的具体用法?C++ pnp_unregister_driver怎么用?C++ pnp_unregister_driver使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pnp_unregister_driver函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: cmos_init
static int __init cmos_init(void)
{
int retval = 0;
#ifdef CONFIG_PNP
retval = pnp_register_driver(&cmos_pnp_driver);
if (retval == 0)
pnp_driver_registered = true;
#endif
if (!cmos_rtc.dev) {
retval = platform_driver_probe(&cmos_platform_driver,
cmos_platform_probe);
if (retval == 0)
platform_driver_registered = true;
}
if (retval == 0)
return 0;
#ifdef CONFIG_PNP
if (pnp_driver_registered)
pnp_unregister_driver(&cmos_pnp_driver);
#endif
return retval;
}
开发者ID:A2109devs,项目名称:lenovo_a2109a_kernel,代码行数:26,代码来源:rtc-cmos.c
示例2: hisax_fcpcipnp_exit
static void __exit hisax_fcpcipnp_exit(void)
{
#ifdef __ISAPNP__
pnp_unregister_driver(&fcpnp_driver);
#endif
pci_unregister_driver(&fcpci_driver);
}
开发者ID:Tigrouzen,项目名称:k1099,代码行数:7,代码来源:hisax_fcpcipnp.c
示例3: fmr2_exit
static void __exit fmr2_exit(void)
{
if (pnp_registered)
pnp_unregister_driver(&fmr2_pnp_driver);
if (isa_registered)
isa_unregister_driver(&fmr2_isa_driver);
}
开发者ID:Niisp,项目名称:MT6795.kernel,代码行数:7,代码来源:radio-sf16fmr2.c
示例4: hisax_fcpcipnp_exit
static void __exit hisax_fcpcipnp_exit(void)
{
#ifdef CONFIG_PNP
pnp_unregister_driver(&fcpnp_driver);
#endif
pci_unregister_driver(&fcpci_driver);
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:7,代码来源:hisax_fcpcipnp.c
示例5: generic_NCR5380_exit
static void __exit generic_NCR5380_exit(void)
{
#ifdef CONFIG_PNP
if (pnp_registered)
pnp_unregister_driver(&generic_NCR5380_pnp_driver);
#endif
if (isa_registered)
isa_unregister_driver(&generic_NCR5380_isa_driver);
}
开发者ID:forgivemyheart,项目名称:linux,代码行数:9,代码来源:g_NCR5380.c
示例6: cmos_exit
static void __exit cmos_exit(void)
{
#ifdef CONFIG_PNP
if (pnp_driver_registered)
pnp_unregister_driver(&cmos_pnp_driver);
#endif
if (platform_driver_registered)
platform_driver_unregister(&cmos_platform_driver);
}
开发者ID:AICP,项目名称:kernel_moto_shamu,代码行数:9,代码来源:rtc-cmos.c
示例7: snd_mpu401_unregister_all
static void __init_or_module snd_mpu401_unregister_all(void)
{
int i;
if (pnp_registered)
pnp_unregister_driver(&snd_mpu401_pnp_driver);
for (i = 0; i < ARRAY_SIZE(platform_devices); ++i)
platform_device_unregister(platform_devices[i]);
platform_driver_unregister(&snd_mpu401_driver);
}
开发者ID:StephenMacras,项目名称:dsl-n55u-bender,代码行数:10,代码来源:mpu401.c
示例8: cmos_exit
static void __exit cmos_exit(void)
{
#ifdef CONFIG_PNP
if (pnp_platform_devices)
pnp_unregister_driver(&cmos_pnp_driver);
else
platform_driver_unregister(&cmos_platform_driver);
#else
platform_driver_unregister(&cmos_platform_driver);
#endif /* CONFIG_PNP */
}
开发者ID:LouZiffer,项目名称:m900_kernel_cupcake-SDX,代码行数:11,代码来源:rtc-cmos.c
示例9: sc1200wdt_exit
static void __exit sc1200wdt_exit(void)
{
misc_deregister(&sc1200wdt_miscdev);
unregister_reboot_notifier(&sc1200wdt_notifier);
#if defined CONFIG_PNP
if (isapnp)
pnp_unregister_driver(&scl200wdt_pnp_driver);
else
#endif
release_region(io, io_len);
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:12,代码来源:sc1200wdt.c
示例10: c2_exit
/* Cleanup when removing the module */
void c2_exit(void)
{
if (irq) {
free_irq(irq, NULL);
}
#ifdef USE_PNP
pnp_unregister_driver(&c2_pnp_driver);
#else
release_region(io_base,0x10);
#endif
unregister_chrdev(Major, DEVICE_NAME);
}
开发者ID:GBert,项目名称:misc,代码行数:13,代码来源:cygnal_c2.c
示例11: rtcan_peak_dng_exit
/** Cleanup module */
static void rtcan_peak_dng_exit(void)
{
int i;
struct rtcan_device *dev;
for (i = 0, dev = rtcan_peak_dng_devs[i];
i < RTCAN_PEAK_DNG_MAX_DEV && dev != NULL;
i++)
rtcan_peak_dng_exit_one(dev);
if (pnp_registered)
pnp_unregister_driver(&rtcan_peak_dng_pnp_driver);
}
开发者ID:BhargavKola,项目名称:xenomai-forge,代码行数:14,代码来源:rtcan_peak_dng.c
示例12: rtcan_peak_dng_exit
/** Cleanup module */
static void rtcan_peak_dng_exit(void)
{
int i;
struct rtcan_device *dev;
for (i = 0, dev = rtcan_peak_dng_devs[i];
i < RTCAN_PEAK_DNG_MAX_DEV && dev != NULL;
i++)
rtcan_peak_dng_exit_one(dev);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
if (pnp_registered)
pnp_unregister_driver(&rtcan_peak_dng_pnp_driver);
#endif /* Linux >= 2.6.0 */
}
开发者ID:gongguowang,项目名称:xenomai-2.6.2.1,代码行数:16,代码来源:rtcan_peak_dng.c
示例13: nsc_ircc_cleanup
static void __exit nsc_ircc_cleanup(void)
{
int i;
for (i = 0; i < ARRAY_SIZE(dev_self); i++) {
if (dev_self[i])
nsc_ircc_close(dev_self[i]);
}
platform_driver_unregister(&nsc_ircc_driver);
if (pnp_registered)
pnp_unregister_driver(&nsc_ircc_pnp_driver);
pnp_registered = 0;
}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:16,代码来源:nsc-ircc.c
示例14: cmos_init
static int __init cmos_init(void)
{
int retval = 0;
#ifdef CONFIG_PNP
pnp_register_driver(&cmos_pnp_driver);
#endif
if (!cmos_rtc.dev)
retval = platform_driver_register(&cmos_platform_driver);
if (retval == 0)
return 0;
#ifdef CONFIG_PNP
pnp_unregister_driver(&cmos_pnp_driver);
#endif
return retval;
}
开发者ID:zhoupeng,项目名称:spice4xen,代码行数:19,代码来源:rtc-cmos.c
示例15: isapnp_exit
static void __exit isapnp_exit(void)
{
pnp_unregister_driver(&isapnp_driver);
}
开发者ID:PennPanda,项目名称:linux-repo,代码行数:4,代码来源:pata_isapnp.c
示例16: cmos_exit
static void __exit cmos_exit(void)
{
pnp_unregister_driver(&cmos_pnp_driver);
}
开发者ID:mrtos,项目名称:Logitech-Revue,代码行数:4,代码来源:rtc-cmos.c
示例17: sc1200wdt_init
static int __init sc1200wdt_init(void)
{
int ret;
printk(KERN_INFO "%s\n", banner);
#if defined CONFIG_PNP
if (isapnp) {
ret = pnp_register_driver(&scl200wdt_pnp_driver);
if (ret)
goto out_clean;
}
#endif
if (io == -1) {
printk(KERN_ERR PFX "io parameter must be specified\n");
ret = -EINVAL;
goto out_pnp;
}
#if defined CONFIG_PNP
/* now that the user has specified an IO port and we haven't detected
* any devices, disable pnp support */
isapnp = 0;
pnp_unregister_driver(&scl200wdt_pnp_driver);
#endif
if (!request_region(io, io_len, SC1200_MODULE_NAME)) {
printk(KERN_ERR PFX "Unable to register IO port %#x\n", io);
ret = -EBUSY;
goto out_pnp;
}
ret = sc1200wdt_probe();
if (ret)
goto out_io;
ret = register_reboot_notifier(&sc1200wdt_notifier);
if (ret) {
printk(KERN_ERR PFX
"Unable to register reboot notifier err = %d\n", ret);
goto out_io;
}
ret = misc_register(&sc1200wdt_miscdev);
if (ret) {
printk(KERN_ERR PFX
"Unable to register miscdev on minor %d\n",
WATCHDOG_MINOR);
goto out_rbt;
}
/* ret = 0 */
out_clean:
return ret;
out_rbt:
unregister_reboot_notifier(&sc1200wdt_notifier);
out_io:
release_region(io, io_len);
out_pnp:
#if defined CONFIG_PNP
if (isapnp)
pnp_unregister_driver(&scl200wdt_pnp_driver);
#endif
goto out_clean;
}
开发者ID:CSCLOG,项目名称:beaglebone,代码行数:70,代码来源:sc1200wdt.c
示例18: pnpide_exit
static void __exit pnpide_exit(void)
{
pnp_unregister_driver(&idepnp_driver);
}
开发者ID:openube,项目名称:android_kernel_sony_c2305,代码行数:4,代码来源:ide-pnp.c
示例19: c6xdigio_detach
static void c6xdigio_detach(struct comedi_device *dev)
{
comedi_legacy_detach(dev);
pnp_unregister_driver(&c6xdigio_pnp_driver);
}
开发者ID:PKUCloud,项目名称:samsara-linux-3.11,代码行数:5,代码来源:c6xdigio.c
示例20: sb1000_exit
static void __exit
sb1000_exit(void)
{
pnp_unregister_driver(&sb1000_driver);
}
开发者ID:325116067,项目名称:semc-qsd8x50,代码行数:5,代码来源:sb1000.c
注:本文中的pnp_unregister_driver函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论