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
nexedi
linux
Commits
558324b6
Commit
558324b6
authored
Aug 17, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[arcnet com90io] replace check_region with temporary request_region,
in probe phase.
parent
96cc55a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
drivers/net/arcnet/com90io.c
drivers/net/arcnet/com90io.c
+11
-6
No files found.
drivers/net/arcnet/com90io.c
View file @
558324b6
...
...
@@ -158,14 +158,14 @@ static int __init com90io_probe(struct net_device *dev)
"must specify the base address!
\n
"
);
return
-
ENODEV
;
}
if
(
check_region
(
ioaddr
,
ARCNET_TOTAL_SIZE
))
{
if
(
!
request_region
(
ioaddr
,
ARCNET_TOTAL_SIZE
,
"com90io probe"
))
{
BUGMSG
(
D_INIT_REASONS
,
"IO check_region %x-%x failed.
\n
"
,
ioaddr
,
ioaddr
+
ARCNET_TOTAL_SIZE
-
1
);
return
-
ENXIO
;
}
if
(
ASTATUS
()
==
0xFF
)
{
BUGMSG
(
D_INIT_REASONS
,
"IO address %x empty
\n
"
,
ioaddr
);
return
-
ENODEV
;
goto
err_out
;
}
inb
(
_RESET
);
mdelay
(
RESETtime
);
...
...
@@ -174,7 +174,7 @@ static int __init com90io_probe(struct net_device *dev)
if
((
status
&
0x9D
)
!=
(
NORXflag
|
RECONflag
|
TXFREEflag
|
RESETflag
))
{
BUGMSG
(
D_INIT_REASONS
,
"Status invalid (%Xh).
\n
"
,
status
);
return
-
ENODEV
;
goto
err_out
;
}
BUGMSG
(
D_INIT_REASONS
,
"Status after reset: %X
\n
"
,
status
);
...
...
@@ -186,7 +186,7 @@ static int __init com90io_probe(struct net_device *dev)
if
(
status
&
RESETflag
)
{
BUGMSG
(
D_INIT_REASONS
,
"Eternal reset (status=%Xh)
\n
"
,
status
);
return
-
ENODEV
;
goto
err_out
;
}
outb
((
0x16
|
IOMAPflag
)
&
~
ENABLE16flag
,
_CONFIG
);
...
...
@@ -198,7 +198,7 @@ static int __init com90io_probe(struct net_device *dev)
if
((
status
=
inb
(
_MEMDATA
))
!=
0xd1
)
{
BUGMSG
(
D_INIT_REASONS
,
"Signature byte not found"
" (%Xh instead).
\n
"
,
status
);
return
-
ENODEV
;
goto
err_out
;
}
if
(
!
dev
->
irq
)
{
/*
...
...
@@ -215,10 +215,15 @@ static int __init com90io_probe(struct net_device *dev)
if
(
dev
->
irq
<=
0
)
{
BUGMSG
(
D_INIT_REASONS
,
"Autoprobe IRQ failed
\n
"
);
return
-
ENODEV
;
goto
err_out
;
}
}
release_region
(
ioaddr
,
ARCNET_TOTAL_SIZE
);
/* end of probing */
return
com90io_found
(
dev
);
err_out:
release_region
(
ioaddr
,
ARCNET_TOTAL_SIZE
);
return
-
ENODEV
;
}
...
...
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