本文整理汇总了C++中sdio_register_bus函数的典型用法代码示例。如果您正苦于以下问题:C++ sdio_register_bus函数的具体用法?C++ sdio_register_bus怎么用?C++ sdio_register_bus使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sdio_register_bus函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: mmc_init
static int __init mmc_init(void)
{
int ret;
wake_lock_init(&mmc_delayed_work_wake_lock, WAKE_LOCK_SUSPEND, "mmc_delayed_work");
workqueue = create_singlethread_workqueue("kmmcd");
if (!workqueue)
return -ENOMEM;
ret = mmc_register_bus();
if (ret)
goto destroy_workqueue;
ret = mmc_register_host_class();
if (ret)
goto unregister_bus;
ret = sdio_register_bus();
if (ret)
goto unregister_host_class;
return 0;
unregister_host_class:
mmc_unregister_host_class();
unregister_bus:
mmc_unregister_bus();
destroy_workqueue:
destroy_workqueue(workqueue);
return ret;
}
开发者ID:DC07,项目名称:CustomKernelSource,代码行数:33,代码来源:core.c
示例2: mmc_init
static int __init mmc_init(void)
{
int ret;
workqueue = create_singlethread_workqueue("kmmcd");
if (!workqueue)
return -ENOMEM;
ret = mmc_register_bus();
if (ret)
goto destroy_workqueue;
ret = mmc_register_host_class();
if (ret)
goto unregister_bus;
ret = sdio_register_bus();
if (ret)
goto unregister_host_class;
return 0;
unregister_host_class:
mmc_unregister_host_class();
unregister_bus:
mmc_unregister_bus();
destroy_workqueue:
destroy_workqueue(workqueue);
return ret;
}
开发者ID:mgrundy,项目名称:bug20-2.6.35-linaro,代码行数:31,代码来源:core.c
示例3: mmc_init
static int __init mmc_init(void)
{
int ret;
wake_lock_init(&mmc_delayed_work_wake_lock, WAKE_LOCK_SUSPEND, "mmc_delayed_work");
/* FIH, BillHJChang, 2009/11/20 { */
/* [FXX_CR], issue of card detect fail in suspend mode */
#ifdef CONFIG_FIH_FXX
wake_lock_init(&sdcard_idle_wake_lock, WAKE_LOCK_IDLE, "sd_suspend_work");
#endif
/* } FIH, BillHJChang, 2009/11/20 */
/* FIH, SimonSSChang, 2010/08/25 { */
/* avoid WIFI firmware reload fail when to do kernel resume */
#ifdef CONFIG_FIH_FXX
workqueue = create_singlethread_workqueue("kmmcd");
#else
workqueue = create_freezeable_workqueue("kmmcd");
#endif
/* } FIH, SimonSSChang, 2010/08/25 */
if (!workqueue)
return -ENOMEM;
ret = mmc_register_bus();
if (ret)
goto destroy_workqueue;
ret = mmc_register_host_class();
if (ret)
goto unregister_bus;
ret = sdio_register_bus();
if (ret)
goto unregister_host_class;
return 0;
unregister_host_class:
mmc_unregister_host_class();
unregister_bus:
mmc_unregister_bus();
destroy_workqueue:
destroy_workqueue(workqueue);
return ret;
}
开发者ID:nunogilberto,项目名称:FIH-Kernel,代码行数:47,代码来源:core.c
示例4: mmc_init
static int __init mmc_init(void)
{
int ret;
pr_debug("mmc_init() start...\n");
wake_lock_init(&mmc_delayed_work_wake_lock, WAKE_LOCK_SUSPEND, "mmc_delayed_work");
workqueue = create_singlethread_workqueue("kmmcd");
if (!workqueue)
return -ENOMEM;
ret = mmc_register_bus();
if (ret)
goto destroy_workqueue;
ret = mmc_register_host_class();
if (ret)
goto unregister_bus;
#ifdef UCONFIG_DDE_MMC_HAVE_SDIO
ret = sdio_register_bus();
if (ret)
goto unregister_host_class;
#endif
return 0;
unregister_host_class:
mmc_unregister_host_class();
unregister_bus:
mmc_unregister_bus();
destroy_workqueue:
destroy_workqueue(workqueue);
return ret;
}
开发者ID:PungiZhang,项目名称:ucore_plus-next,代码行数:36,代码来源:core.c
示例5: mmc_init
static int __init mmc_init(void)
{
int ret;
//B: Robert, 20101006, KB62_CR766 : Fix unexpectedly remove SD card issue
#if 0
wake_lock_init(&mmc_delayed_work_wake_lock, WAKE_LOCK_SUSPEND, "mmc_delayed_work");
#endif
workqueue = create_singlethread_workqueue("kmmcd");
//E: Robert, 20101006, KB62_CR766
if (!workqueue)
return -ENOMEM;
ret = mmc_register_bus();
if (ret)
goto destroy_workqueue;
ret = mmc_register_host_class();
if (ret)
goto unregister_bus;
ret = sdio_register_bus();
if (ret)
goto unregister_host_class;
return 0;
unregister_host_class:
mmc_unregister_host_class();
unregister_bus:
mmc_unregister_bus();
destroy_workqueue:
destroy_workqueue(workqueue);
return ret;
}
开发者ID:Mcjesus15,项目名称:Zio_Kernel,代码行数:36,代码来源:core.c
注:本文中的sdio_register_bus函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论