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
d7de5700
Commit
d7de5700
authored
Feb 11, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request_region cleanups from 2.4 and the kernel janitors.
Via Dave Jones.
parent
c7999225
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
drivers/net/arcnet/com90io.c
drivers/net/arcnet/com90io.c
+4
-1
drivers/net/eexpress.c
drivers/net/eexpress.c
+0
-1
drivers/net/sb1000.c
drivers/net/sb1000.c
+6
-6
No files found.
drivers/net/arcnet/com90io.c
View file @
d7de5700
...
@@ -241,7 +241,10 @@ static int __init com90io_found(struct net_device *dev)
...
@@ -241,7 +241,10 @@ static int __init com90io_found(struct net_device *dev)
return
-
ENODEV
;
return
-
ENODEV
;
}
}
/* Reserve the I/O region - guaranteed to work by check_region */
/* Reserve the I/O region - guaranteed to work by check_region */
request_region
(
dev
->
base_addr
,
ARCNET_TOTAL_SIZE
,
"arcnet (COM90xx-IO)"
);
if
(
!
request_region
(
dev
->
base_addr
,
ARCNET_TOTAL_SIZE
,
"arcnet (COM90xx-IO)"
))
{
free_irq
(
dev
->
irq
,
dev
);
return
-
EBUSY
;
}
/* Initialize the rest of the device structure. */
/* Initialize the rest of the device structure. */
dev
->
priv
=
kmalloc
(
sizeof
(
struct
arcnet_local
),
GFP_KERNEL
);
dev
->
priv
=
kmalloc
(
sizeof
(
struct
arcnet_local
),
GFP_KERNEL
);
...
...
drivers/net/eexpress.c
View file @
d7de5700
...
@@ -1674,7 +1674,6 @@ void cleanup_module(void)
...
@@ -1674,7 +1674,6 @@ void cleanup_module(void)
unregister_netdev
(
dev
);
unregister_netdev
(
dev
);
kfree
(
dev
->
priv
);
kfree
(
dev
->
priv
);
dev
->
priv
=
NULL
;
dev
->
priv
=
NULL
;
release_region
(
dev
->
base_addr
,
EEXP_IO_EXTENT
);
}
}
}
}
}
}
...
...
drivers/net/sb1000.c
View file @
d7de5700
...
@@ -204,7 +204,12 @@ sb1000_probe(struct net_device *dev)
...
@@ -204,7 +204,12 @@ sb1000_probe(struct net_device *dev)
/*
/*
* Ok set it up.
* Ok set it up.
*/
*/
if
(
!
request_region
(
ioaddr
[
0
],
16
,
dev
->
name
))
continue
;
if
(
!
request_region
(
ioaddr
[
1
],
16
,
dev
->
name
))
{
release_region
(
ioaddr
[
0
],
16
);
continue
;
}
dev
->
base_addr
=
ioaddr
[
0
];
dev
->
base_addr
=
ioaddr
[
0
];
/* rmem_end holds the second I/O address - fv */
/* rmem_end holds the second I/O address - fv */
...
@@ -262,9 +267,6 @@ sb1000_probe(struct net_device *dev)
...
@@ -262,9 +267,6 @@ sb1000_probe(struct net_device *dev)
/* Lock resources */
/* Lock resources */
request_region
(
ioaddr
[
0
],
16
,
dev
->
name
);
request_region
(
ioaddr
[
1
],
16
,
dev
->
name
);
return
0
;
return
0
;
}
}
}
}
...
@@ -962,8 +964,6 @@ sb1000_open(struct net_device *dev)
...
@@ -962,8 +964,6 @@ sb1000_open(struct net_device *dev)
/* rmem_end holds the second I/O address - fv */
/* rmem_end holds the second I/O address - fv */
ioaddr
[
1
]
=
dev
->
rmem_end
;
ioaddr
[
1
]
=
dev
->
rmem_end
;
name
=
dev
->
name
;
name
=
dev
->
name
;
request_region
(
ioaddr
[
0
],
SB1000_IO_EXTENT
,
"sb1000"
);
request_region
(
ioaddr
[
1
],
SB1000_IO_EXTENT
,
"sb1000"
);
/* initialize sb1000 */
/* initialize sb1000 */
if
((
status
=
sb1000_reset
(
ioaddr
,
name
)))
if
((
status
=
sb1000_reset
(
ioaddr
,
name
)))
...
...
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