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
989c3239
Commit
989c3239
authored
Nov 25, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] pcmcia tcic region cleanups
parent
82fa7a84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/pcmcia/tcic.c
drivers/pcmcia/tcic.c
+7
-6
No files found.
drivers/pcmcia/tcic.c
View file @
989c3239
...
...
@@ -392,7 +392,11 @@ static int __init init_tcic(void)
printk
(
KERN_INFO
"Databook TCIC-2 PCMCIA probe: "
);
sock
=
0
;
if
(
check_region
(
tcic_base
,
16
)
==
0
)
{
if
(
!
request_region
(
tcic_base
,
16
,
"tcic-2"
))
{
printk
(
"could not allocate ports,
\n
"
);
return
-
ENODEV
;
}
else
{
tcic_setw
(
TCIC_ADDR
,
0
);
if
(
tcic_getw
(
TCIC_ADDR
)
==
0
)
{
tcic_setw
(
TCIC_ADDR
,
0xc3a5
);
...
...
@@ -408,16 +412,13 @@ static int __init init_tcic(void)
if
(
tcic_getw
(
TCIC_ADDR
)
==
0xc3a5
)
sock
=
2
;
}
}
}
else
printk
(
"could not allocate ports, "
);
}
if
(
sock
==
0
)
{
printk
(
"not found.
\n
"
);
release_region
(
tcic_base
,
16
);
return
-
ENODEV
;
}
request_region
(
tcic_base
,
16
,
"tcic-2"
);
sockets
=
0
;
for
(
i
=
0
;
i
<
sock
;
i
++
)
{
if
((
i
==
ignore
)
||
is_active
(
i
))
continue
;
...
...
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