Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
afa05724
Commit
afa05724
authored
Mar 06, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] more 2.0/2.2 bits
parent
29858ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
16 deletions
+1
-16
drivers/net/mac8390.c
drivers/net/mac8390.c
+0
-2
drivers/net/sk_mca.c
drivers/net/sk_mca.c
+1
-14
No files found.
drivers/net/mac8390.c
View file @
afa05724
...
...
@@ -376,11 +376,9 @@ int __init mac8390_probe(struct net_device * dev)
}
#ifdef MODULE
#if LINUX_VERSION_CODE > 0x20118
MODULE_AUTHOR
(
"David Huggins-Daines <dhd@debian.org> and others"
);
MODULE_DESCRIPTION
(
"Macintosh NS8390-based Nubus Ethernet driver"
);
MODUEL_LICENSE
(
"GPL"
);
#endif
int
init_module
(
void
)
{
...
...
drivers/net/sk_mca.c
View file @
afa05724
...
...
@@ -649,9 +649,7 @@ static u16 irqrx_handler(struct SKMCA_NETDEV *dev, u16 oldcsr0)
skb
->
protocol
=
eth_type_trans
(
skb
,
dev
);
skb
->
ip_summed
=
CHECKSUM_NONE
;
priv
->
stat
.
rx_packets
++
;
#if LINUX_VERSION_CODE >= 0x020119
/* byte counters for >= 2.1.25 */
priv
->
stat
.
rx_bytes
+=
descr
.
Len
;
#endif
netif_rx
(
skb
);
dev
->
last_rx
=
jiffies
;
}
...
...
@@ -709,9 +707,7 @@ static u16 irqtx_handler(struct SKMCA_NETDEV *dev, u16 oldcsr0)
/* update statistics */
if
((
descr
.
Flags
&
TXDSCR_FLAGS_ERR
)
==
0
)
{
priv
->
stat
.
tx_packets
++
;
#if LINUX_VERSION_CODE >= 0x020119
/* byte counters for >= 2.1.25 */
priv
->
stat
.
tx_bytes
++
;
#endif
}
else
{
priv
->
stat
.
tx_errors
++
;
if
((
descr
.
Status
&
TXDSCR_STATUS_UFLO
)
!=
0
)
{
...
...
@@ -1001,13 +997,8 @@ static int skmca_tx(struct sk_buff *skb, struct SKMCA_NETDEV *dev)
tx_done:
/* When did that change exactly ? */
#if LINUX_VERSION_CODE >= 0x020200
dev_kfree_skb
(
skb
);
#else
dev_kfree_skb
(
skb
,
FREE_WRITE
);
#endif
return
retval
;
}
...
...
@@ -1146,9 +1137,7 @@ int __init skmca_probe(struct SKMCA_NETDEV *dev)
mca_set_adapter_name
(
slot
,
"SKNET MC2+ Ethernet Adapter"
);
mca_set_adapter_procfn
(
slot
,
(
MCA_ProcFn
)
skmca_getinfo
,
dev
);
#if LINUX_VERSION_CODE >= 0x020200
mca_mark_as_used
(
slot
);
#endif
/* announce success */
printk
(
"%s: SKNet %s adapter found in slot %d
\n
"
,
dev
->
name
,
...
...
@@ -1283,9 +1272,7 @@ void cleanup_module(void)
free_irq
(
dev
->
irq
,
dev
);
dev
->
irq
=
0
;
unregister_netdev
(
dev
);
#if LINUX_VERSION_CODE >= 0x020200
mca_mark_as_unused
(
priv
->
slot
);
#endif
mca_set_adapter_procfn
(
priv
->
slot
,
NULL
,
NULL
);
kfree
(
dev
->
priv
);
dev
->
priv
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment