• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ phy_driver_unregister函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中phy_driver_unregister函数的典型用法代码示例。如果您正苦于以下问题:C++ phy_driver_unregister函数的具体用法?C++ phy_driver_unregister怎么用?C++ phy_driver_unregister使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了phy_driver_unregister函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: broadcom_init

static int __init broadcom_init(void)
{
    int ret;

    ret = phy_driver_register(&bcm5411_driver);
    if (ret)
        goto out_5411;
    ret = phy_driver_register(&bcm5421_driver);
    if (ret)
        goto out_5421;
    ret = phy_driver_register(&bcm5461_driver);
    if (ret)
        goto out_5461;
    ret = phy_driver_register(&bcm5481_driver);
    if (ret)
        goto out_5481;
    return ret;

out_5481:
    phy_driver_unregister(&bcm5461_driver);
out_5461:
    phy_driver_unregister(&bcm5421_driver);
out_5421:
    phy_driver_unregister(&bcm5411_driver);
out_5411:
    return ret;
}
开发者ID:mrtos,项目名称:Logitech-Revue,代码行数:27,代码来源:broadcom.c


示例2: marvell_exit

static void __exit marvell_exit(void)
{
	int i;

	for (i = 0; i < ARRAY_SIZE(marvell_drivers); i++)
		phy_driver_unregister(&marvell_drivers[i]);
}
开发者ID:AppEngine,项目名称:linux-2.6,代码行数:7,代码来源:marvell.c


示例3: vsc82xx_init

static int __init vsc82xx_init(void)
{
	int err;

	err = phy_driver_register(&vsc8244_driver);
	if (err < 0)
		return err;
	err = phy_driver_register(&vsc8221_driver);
	if (err < 0)
		phy_driver_unregister(&vsc8244_driver);
	return err;
}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:12,代码来源:vitesse.c


示例4: b53_phy_driver_register

int __init b53_phy_driver_register(void)
{
	int ret;

	ret = phy_driver_register(&b53_phy_driver_id1);
	if (ret)
		return ret;

	ret = phy_driver_register(&b53_phy_driver_id2);
	if (ret)
		goto err1;

	ret = phy_driver_register(&b53_phy_driver_id3);
	if (!ret)
		return 0;

	phy_driver_unregister(&b53_phy_driver_id2);
err1:
	phy_driver_unregister(&b53_phy_driver_id1);
	return ret;
}
开发者ID:2812015651,项目名称:cuckoo,代码行数:21,代码来源:b53_mdio.c


示例5: lxt_init

static int __init lxt_init(void)
{
	int ret;

	ret = phy_driver_register(&lxt970_driver);
	if (ret)
		goto err1;

	ret = phy_driver_register(&lxt971_driver);
	if (ret)
		goto err2;

	ret = phy_driver_register(&lxt973_driver);
	if (ret)
		goto err3;
	return 0;

 err3:
	phy_driver_unregister(&lxt971_driver);
 err2:
	phy_driver_unregister(&lxt970_driver);
 err1:
	return ret;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:24,代码来源:lxt.c


示例6: marvell_init

static int __init marvell_init(void)
{
	int ret;

	ret = phy_driver_register(&m88e1101_driver);
	if (ret)
		return ret;

	ret = phy_driver_register(&m88e1111s_driver);
	if (ret)
		goto err1111s;

	ret = phy_driver_register(&m88e1145_driver);
	if (ret)
		goto err1145;

	return 0;

      err1145:
	phy_driver_unregister(&m88e1111s_driver);
      err1111s:
	phy_driver_unregister(&m88e1101_driver);
	return ret;
}
开发者ID:StephenMacras,项目名称:dsl-n55u-bender,代码行数:24,代码来源:marvell.c


示例7: davicom_init

static int __init davicom_init(void)
{
	int ret;

	ret = phy_driver_register(&dm9161e_driver);
	if (ret)
		goto err1;

	ret = phy_driver_register(&dm9161a_driver);
	if (ret)
		goto err2;

	ret = phy_driver_register(&dm9131_driver);
	if (ret)
		goto err3;
	return 0;

 err3:
	phy_driver_unregister(&dm9161a_driver);
 err2:
	phy_driver_unregister(&dm9161e_driver);
 err1:
	return ret;
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:24,代码来源:davicom.c


示例8: bcm63xx_phy_init

static int __init bcm63xx_phy_init(void)
{
	int ret;

	ret = phy_driver_register(&bcm63xx_1_driver);
	if (ret)
		goto out_63xx_1;
	ret = phy_driver_register(&bcm63xx_2_driver);
	if (ret)
		goto out_63xx_2;
	return ret;

out_63xx_2:
	phy_driver_unregister(&bcm63xx_1_driver);
out_63xx_1:
	return ret;
}
开发者ID:3null,项目名称:fastsocket,代码行数:17,代码来源:bcm63xx.c


示例9: marvell_init

static int __init marvell_init(void)
{
	int ret;
	int i;

	for (i = 0; i < ARRAY_SIZE(marvell_drivers); i++) {
		ret = phy_driver_register(&marvell_drivers[i]);

		if (ret) {
			while (i-- > 0)
				phy_driver_unregister(&marvell_drivers[i]);
			return ret;
		}
	}

	return 0;
}
开发者ID:AppEngine,项目名称:linux-2.6,代码行数:17,代码来源:marvell.c


示例10: cicada_init

static int __init cicada_init(void)
{
	int ret;

	ret = phy_driver_register(&cis8204_driver);
	if (ret)
		goto err1;

	ret = phy_driver_register(&cis8201_driver);
	if (ret)
		goto err2;
	return 0;

err2:
	phy_driver_unregister(&cis8204_driver);
err1:
	return ret;
}
开发者ID:KaZoom,项目名称:buildroot-linux-kernel-m3,代码行数:18,代码来源:cicada.c


示例11: atheros_init

static int __init atheros_init(void)
{
	int ret;

	ret = phy_driver_register(&at8035_driver);
	if (ret)
		goto err1;

	ret = phy_driver_register(&at8030_driver);
	if (ret)
		goto err2;

	return 0;

err2:
	phy_driver_unregister(&at8035_driver);
err1:
	return ret;
}
开发者ID:AD5GB,项目名称:kernel_n5_3.10-experimental,代码行数:19,代码来源:at803x.c


示例12: davicom_exit

static void __exit davicom_exit(void)
{
	phy_driver_unregister(&dm9161e_driver);
	phy_driver_unregister(&dm9161a_driver);
	phy_driver_unregister(&dm9131_driver);
}
开发者ID:Medvedroid,项目名称:OT_903D-kernel-2.6.35.7,代码行数:6,代码来源:davicom.c


示例13: cicada_exit

static void __exit cicada_exit(void)
{
	phy_driver_unregister(&cis8204_driver);
	phy_driver_unregister(&cis8201_driver);
}
开发者ID:KaZoom,项目名称:buildroot-linux-kernel-m3,代码行数:5,代码来源:cicada.c


示例14: micrel_phy_exit

static void __exit micrel_phy_exit(void)
{
	phy_driver_unregister(&ksz8041_phy_driver);
}
开发者ID:amalrajt,项目名称:linux-sh4-2.6.23.17_stm23_A18B,代码行数:4,代码来源:micrel.c


示例15: vsc82xx_exit

static void __exit vsc82xx_exit(void)
{
	phy_driver_unregister(&vsc8244_driver);
	phy_driver_unregister(&vsc8221_driver);
}
开发者ID:DirtyDroidX,项目名称:android_kernel_htc_m8ul,代码行数:5,代码来源:vitesse.c


示例16: ksphy_exit

static void __exit ksphy_exit(void)
{
	phy_driver_unregister(&ks8001_driver);
	phy_driver_unregister(&vsc8201_driver);
	phy_driver_unregister(&ksz9021_driver);
}
开发者ID:KaZoom,项目名称:buildroot-linux-kernel-m3,代码行数:6,代码来源:micrel.c


示例17: ste10Xp_exit

static void __exit ste10Xp_exit(void)
{
	phy_driver_unregister(&ste100p_pdriver);
	phy_driver_unregister(&ste101p_pdriver);
}
开发者ID:amalrajt,项目名称:linux-sh4-2.6.23.17_stm23_A18B,代码行数:5,代码来源:ste10Xp.c


示例18: realtek_exit

static void __exit realtek_exit(void)
{
	phy_driver_unregister(&rtl8211b_driver);
	phy_driver_unregister(&rtl8211e_driver);
}
开发者ID:magnusjjj,项目名称:android_kernel_huawei_rle,代码行数:5,代码来源:realtek.c


示例19: b53_phy_driver_unregister

void __exit b53_phy_driver_unregister(void)
{
	phy_driver_unregister(&b53_phy_driver_id3);
	phy_driver_unregister(&b53_phy_driver_id2);
	phy_driver_unregister(&b53_phy_driver_id1);
}
开发者ID:2812015651,项目名称:cuckoo,代码行数:6,代码来源:b53_mdio.c


示例20: bcm63xx_phy_exit

static void __exit bcm63xx_phy_exit(void)
{
	phy_driver_unregister(&bcm63xx_1_driver);
	phy_driver_unregister(&bcm63xx_2_driver);
}
开发者ID:3null,项目名称:fastsocket,代码行数:5,代码来源:bcm63xx.c



注:本文中的phy_driver_unregister函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ phy_ethtool_gset函数代码示例发布时间:2022-05-30
下一篇:
C++ phy_driver_register函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap