diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/appletalk/cops.c | 2 | ||||
-rw-r--r-- | drivers/net/appletalk/ltpc.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/atarilance.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/mvme147.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/ni65.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/amd/sun3lance.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/debug.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c index cff6f023c03a..7f2a032c354c 100644 --- a/drivers/net/appletalk/cops.c +++ b/drivers/net/appletalk/cops.c | |||
@@ -996,7 +996,7 @@ static int __init cops_module_init(void) | |||
996 | printk(KERN_WARNING "%s: You shouldn't autoprobe with insmod\n", | 996 | printk(KERN_WARNING "%s: You shouldn't autoprobe with insmod\n", |
997 | cardname); | 997 | cardname); |
998 | cops_dev = cops_probe(-1); | 998 | cops_dev = cops_probe(-1); |
999 | return PTR_RET(cops_dev); | 999 | return PTR_ERR_OR_ZERO(cops_dev); |
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | static void __exit cops_module_exit(void) | 1002 | static void __exit cops_module_exit(void) |
diff --git a/drivers/net/appletalk/ltpc.c b/drivers/net/appletalk/ltpc.c index b5782cdf0bca..01e2ac55c137 100644 --- a/drivers/net/appletalk/ltpc.c +++ b/drivers/net/appletalk/ltpc.c | |||
@@ -1243,7 +1243,7 @@ static int __init ltpc_module_init(void) | |||
1243 | "ltpc: Autoprobing is not recommended for modules\n"); | 1243 | "ltpc: Autoprobing is not recommended for modules\n"); |
1244 | 1244 | ||
1245 | dev_ltpc = ltpc_probe(); | 1245 | dev_ltpc = ltpc_probe(); |
1246 | return PTR_RET(dev_ltpc); | 1246 | return PTR_ERR_OR_ZERO(dev_ltpc); |
1247 | } | 1247 | } |
1248 | module_init(ltpc_module_init); | 1248 | module_init(ltpc_module_init); |
1249 | #endif | 1249 | #endif |
diff --git a/drivers/net/ethernet/amd/atarilance.c b/drivers/net/ethernet/amd/atarilance.c index e8d0ef508f48..10ceca523fc0 100644 --- a/drivers/net/ethernet/amd/atarilance.c +++ b/drivers/net/ethernet/amd/atarilance.c | |||
@@ -1147,7 +1147,7 @@ static struct net_device *atarilance_dev; | |||
1147 | static int __init atarilance_module_init(void) | 1147 | static int __init atarilance_module_init(void) |
1148 | { | 1148 | { |
1149 | atarilance_dev = atarilance_probe(-1); | 1149 | atarilance_dev = atarilance_probe(-1); |
1150 | return PTR_RET(atarilance_dev); | 1150 | return PTR_ERR_OR_ZERO(atarilance_dev); |
1151 | } | 1151 | } |
1152 | 1152 | ||
1153 | static void __exit atarilance_module_exit(void) | 1153 | static void __exit atarilance_module_exit(void) |
diff --git a/drivers/net/ethernet/amd/mvme147.c b/drivers/net/ethernet/amd/mvme147.c index a51497c9d2af..e108e911da05 100644 --- a/drivers/net/ethernet/amd/mvme147.c +++ b/drivers/net/ethernet/amd/mvme147.c | |||
@@ -188,7 +188,7 @@ static struct net_device *dev_mvme147_lance; | |||
188 | int __init init_module(void) | 188 | int __init init_module(void) |
189 | { | 189 | { |
190 | dev_mvme147_lance = mvme147lance_probe(-1); | 190 | dev_mvme147_lance = mvme147lance_probe(-1); |
191 | return PTR_RET(dev_mvme147_lance); | 191 | return PTR_ERR_OR_ZERO(dev_mvme147_lance); |
192 | } | 192 | } |
193 | 193 | ||
194 | void __exit cleanup_module(void) | 194 | void __exit cleanup_module(void) |
diff --git a/drivers/net/ethernet/amd/ni65.c b/drivers/net/ethernet/amd/ni65.c index 26fc0ce0faa3..1cf33addd15e 100644 --- a/drivers/net/ethernet/amd/ni65.c +++ b/drivers/net/ethernet/amd/ni65.c | |||
@@ -1238,7 +1238,7 @@ MODULE_PARM_DESC(dma, "ni6510 ISA DMA channel (ignored for some cards)"); | |||
1238 | int __init init_module(void) | 1238 | int __init init_module(void) |
1239 | { | 1239 | { |
1240 | dev_ni65 = ni65_probe(-1); | 1240 | dev_ni65 = ni65_probe(-1); |
1241 | return PTR_RET(dev_ni65); | 1241 | return PTR_ERR_OR_ZERO(dev_ni65); |
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | void __exit cleanup_module(void) | 1244 | void __exit cleanup_module(void) |
diff --git a/drivers/net/ethernet/amd/sun3lance.c b/drivers/net/ethernet/amd/sun3lance.c index 4375abe61da1..d6b20296b8e4 100644 --- a/drivers/net/ethernet/amd/sun3lance.c +++ b/drivers/net/ethernet/amd/sun3lance.c | |||
@@ -940,7 +940,7 @@ static struct net_device *sun3lance_dev; | |||
940 | int __init init_module(void) | 940 | int __init init_module(void) |
941 | { | 941 | { |
942 | sun3lance_dev = sun3lance_probe(-1); | 942 | sun3lance_dev = sun3lance_probe(-1); |
943 | return PTR_RET(sun3lance_dev); | 943 | return PTR_ERR_OR_ZERO(sun3lance_dev); |
944 | } | 944 | } |
945 | 945 | ||
946 | void __exit cleanup_module(void) | 946 | void __exit cleanup_module(void) |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c index c37b9d68e458..0f9e9057e7dd 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c | |||
@@ -50,7 +50,7 @@ int brcmf_debugfs_attach(struct brcmf_pub *drvr) | |||
50 | return -ENODEV; | 50 | return -ENODEV; |
51 | 51 | ||
52 | drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder); | 52 | drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder); |
53 | return PTR_RET(drvr->dbgfs_dir); | 53 | return PTR_ERR_OR_ZERO(drvr->dbgfs_dir); |
54 | } | 54 | } |
55 | 55 | ||
56 | void brcmf_debugfs_detach(struct brcmf_pub *drvr) | 56 | void brcmf_debugfs_detach(struct brcmf_pub *drvr) |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/debug.c b/drivers/net/wireless/brcm80211/brcmsmac/debug.c index 9761deb46204..a5d4add26f41 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/debug.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/debug.c | |||
@@ -56,7 +56,7 @@ int brcms_debugfs_attach(struct brcms_pub *drvr) | |||
56 | 56 | ||
57 | drvr->dbgfs_dir = debugfs_create_dir( | 57 | drvr->dbgfs_dir = debugfs_create_dir( |
58 | dev_name(&drvr->wlc->hw->d11core->dev), root_folder); | 58 | dev_name(&drvr->wlc->hw->d11core->dev), root_folder); |
59 | return PTR_RET(drvr->dbgfs_dir); | 59 | return PTR_ERR_OR_ZERO(drvr->dbgfs_dir); |
60 | } | 60 | } |
61 | 61 | ||
62 | void brcms_debugfs_detach(struct brcms_pub *drvr) | 62 | void brcms_debugfs_detach(struct brcms_pub *drvr) |