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
2a217dfb
Commit
2a217dfb
authored
Feb 13, 2003
by
Dave Jones
Committed by
Jeff Garzik
Feb 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr sunbmac] probe path cleanup
Merged from 2.4.x.
parent
1ba6f07b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
drivers/net/sunbmac.c
drivers/net/sunbmac.c
+3
-10
No files found.
drivers/net/sunbmac.c
View file @
2a217dfb
...
...
@@ -1033,8 +1033,9 @@ static void bigmac_set_multicast(struct net_device *dev)
sbus_writel
(
tmp
,
bregs
+
BMAC_RXCFG
);
}
static
int
__init
bigmac_ether_init
(
struct
net_device
*
dev
,
struct
sbus_dev
*
qec_sdev
)
static
int
__init
bigmac_ether_init
(
struct
sbus_dev
*
qec_sdev
)
{
struct
net_device
*
dev
;
static
int
version_printed
;
struct
bigmac
*
bp
;
u8
bsizes
,
bsizes_more
;
...
...
@@ -1049,9 +1050,6 @@ static int __init bigmac_ether_init(struct net_device *dev, struct sbus_dev *qec
if
(
version_printed
++
==
0
)
printk
(
KERN_INFO
"%s"
,
version
);
if
(
!
dev
)
return
-
ENOMEM
;
/* Report what we have found to the user. */
printk
(
KERN_INFO
"%s: BigMAC 100baseT Ethernet "
,
dev
->
name
);
dev
->
base_addr
=
(
long
)
qec_sdev
;
...
...
@@ -1180,7 +1178,6 @@ static int __init bigmac_ether_init(struct net_device *dev, struct sbus_dev *qec
/* Finish net device registration. */
dev
->
irq
=
bp
->
bigmac_sdev
->
irqs
[
0
];
dev
->
dma
=
0
;
ether_setup
(
dev
);
/* Put us into the list of instances attached for later driver
* exit.
...
...
@@ -1235,7 +1232,6 @@ static int __init bigmac_match(struct sbus_dev *sdev)
static
int
__init
bigmac_probe
(
void
)
{
struct
net_device
*
dev
=
NULL
;
struct
sbus_bus
*
sbus
;
struct
sbus_dev
*
sdev
=
0
;
static
int
called
;
...
...
@@ -1249,12 +1245,9 @@ static int __init bigmac_probe(void)
for_each_sbus
(
sbus
)
{
for_each_sbusdev
(
sdev
,
sbus
)
{
if
(
cards
)
dev
=
NULL
;
if
(
bigmac_match
(
sdev
))
{
cards
++
;
if
((
v
=
bigmac_ether_init
(
dev
,
sdev
)))
if
((
v
=
bigmac_ether_init
(
sdev
)))
return
v
;
}
}
...
...
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