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
1892661a
Commit
1892661a
authored
Sep 30, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: In smsc-ircc2 use request_region instead of check_region.
parent
de237eb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
drivers/net/irda/smsc-ircc2.c
drivers/net/irda/smsc-ircc2.c
+21
-17
No files found.
drivers/net/irda/smsc-ircc2.c
View file @
1892661a
...
...
@@ -2264,32 +2264,36 @@ static const smsc_chip_t * __init smsc_ircc_probe(unsigned short cfg_base,u8 reg
static
int
__init
smsc_superio_fdc
(
unsigned
short
cfg_base
)
{
if
(
check_region
(
cfg_base
,
2
)
<
0
)
{
int
ret
=
-
1
;
if
(
!
request_region
(
cfg_base
,
2
,
driver_name
))
{
WARNING
(
"%s: can't get cfg_base of 0x%03x
\n
"
,
__FUNCTION__
,
cfg_base
);
return
-
1
;
}
}
else
{
if
(
!
smsc_superio_flat
(
fdc_chips_flat
,
cfg_base
,
"FDC"
)
||!
smsc_superio_paged
(
fdc_chips_paged
,
cfg_base
,
"FDC"
))
ret
=
0
;
if
(
!
smsc_superio_flat
(
fdc_chips_flat
,
cfg_base
,
"FDC"
)
||!
smsc_superio_paged
(
fdc_chips_paged
,
cfg_base
,
"FDC"
))
return
0
;
release_region
(
cfg_base
,
2
);
}
return
-
1
;
return
ret
;
}
static
int
__init
smsc_superio_lpc
(
unsigned
short
cfg_base
)
{
#if 0
if (check_region(cfg_base, 2) < 0) {
IRDA_DEBUG(0, __FUNCTION__ ": can't get cfg_base of 0x%03x\n",
cfg_base);
return -1;
}
#endif
if
(
!
smsc_superio_flat
(
lpc_chips_flat
,
cfg_base
,
"LPC"
)
||!
smsc_superio_paged
(
lpc_chips_paged
,
cfg_base
,
"LPC"
))
return
0
;
int
ret
=
-
1
;
return
-
1
;
if
(
!
request_region
(
cfg_base
,
2
,
driver_name
))
{
WARNING
(
"%s: can't get cfg_base of 0x%03x
\n
"
,
__FUNCTION__
,
cfg_base
);
}
else
{
if
(
!
smsc_superio_flat
(
lpc_chips_flat
,
cfg_base
,
"LPC"
)
||!
smsc_superio_paged
(
lpc_chips_paged
,
cfg_base
,
"LPC"
))
ret
=
0
;
release_region
(
cfg_base
,
2
);
}
return
ret
;
}
/************************************************
...
...
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