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
4af15b5e
Commit
4af15b5e
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] wan sbni region cleanups
parent
9c30f2b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
drivers/net/wan/sbni.c
drivers/net/wan/sbni.c
+3
-6
No files found.
drivers/net/wan/sbni.c
View file @
4af15b5e
...
@@ -194,7 +194,7 @@ static inline int __init
...
@@ -194,7 +194,7 @@ static inline int __init
sbni_isa_probe
(
struct
net_device
*
dev
)
sbni_isa_probe
(
struct
net_device
*
dev
)
{
{
if
(
dev
->
base_addr
>
0x1ff
if
(
dev
->
base_addr
>
0x1ff
&&
!
check_region
(
dev
->
base_addr
,
SBNI_IO_EXTENT
)
&&
request_region
(
dev
->
base_addr
,
SBNI_IO_EXTENT
,
dev
->
name
)
&&
sbni_probe1
(
dev
,
dev
->
base_addr
,
dev
->
irq
)
)
&&
sbni_probe1
(
dev
,
dev
->
base_addr
,
dev
->
irq
)
)
return
0
;
return
0
;
...
@@ -249,7 +249,7 @@ sbni_probe( struct net_device *dev )
...
@@ -249,7 +249,7 @@ sbni_probe( struct net_device *dev )
for
(
i
=
0
;
netcard_portlist
[
i
];
++
i
)
{
for
(
i
=
0
;
netcard_portlist
[
i
];
++
i
)
{
int
ioaddr
=
netcard_portlist
[
i
];
int
ioaddr
=
netcard_portlist
[
i
];
if
(
!
check_region
(
ioaddr
,
SBNI_IO_EXTENT
)
if
(
request_region
(
ioaddr
,
SBNI_IO_EXTENT
,
dev
->
name
)
&&
sbni_probe1
(
dev
,
ioaddr
,
0
))
&&
sbni_probe1
(
dev
,
ioaddr
,
0
))
return
0
;
return
0
;
}
}
...
@@ -280,7 +280,7 @@ sbni_pci_probe( struct net_device *dev )
...
@@ -280,7 +280,7 @@ sbni_pci_probe( struct net_device *dev )
pci_irq_line
=
pdev
->
irq
;
pci_irq_line
=
pdev
->
irq
;
/* Avoid already found cards from previous calls */
/* Avoid already found cards from previous calls */
if
(
check_region
(
pci_ioaddr
,
SBNI_IO_EXTENT
)
)
{
if
(
!
pci_request_region
(
pci_ioaddr
,
SBNI_IO_EXTENT
,
dev
->
name
)
)
{
pci_read_config_word
(
pdev
,
PCI_SUBSYSTEM_ID
,
&
subsys
);
pci_read_config_word
(
pdev
,
PCI_SUBSYSTEM_ID
,
&
subsys
);
if
(
subsys
!=
2
||
/* Dual adapter is present */
if
(
subsys
!=
2
||
/* Dual adapter is present */
check_region
(
pci_ioaddr
+=
4
,
SBNI_IO_EXTENT
)
)
check_region
(
pci_ioaddr
+=
4
,
SBNI_IO_EXTENT
)
)
...
@@ -310,9 +310,6 @@ sbni_probe1( struct net_device *dev, unsigned long ioaddr, int irq )
...
@@ -310,9 +310,6 @@ sbni_probe1( struct net_device *dev, unsigned long ioaddr, int irq )
{
{
struct
net_local
*
nl
;
struct
net_local
*
nl
;
if
(
!
request_region
(
ioaddr
,
SBNI_IO_EXTENT
,
dev
->
name
)
)
return
0
;
if
(
sbni_card_probe
(
ioaddr
)
)
{
if
(
sbni_card_probe
(
ioaddr
)
)
{
release_region
(
ioaddr
,
SBNI_IO_EXTENT
);
release_region
(
ioaddr
,
SBNI_IO_EXTENT
);
return
0
;
return
0
;
...
...
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