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
4246fcb1
Commit
4246fcb1
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] region handling cleanups for tpqic02
parent
79a4c583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/char/tpqic02.c
drivers/char/tpqic02.c
+5
-5
No files found.
drivers/char/tpqic02.c
View file @
4246fcb1
...
...
@@ -2748,7 +2748,9 @@ static int qic02_get_resources(void)
* the config parameters have been set using MTSETCONFIG.
*/
if
(
check_region
(
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
))
{
/* Grab the IO region. */
if
(
!
request_region
(
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
,
TPQIC02_NAME
))
{
printk
(
TPQIC02_NAME
": IO space at 0x%x [%d ports] already reserved
\n
"
,
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
);
...
...
@@ -2762,6 +2764,7 @@ static int qic02_get_resources(void)
printk
(
TPQIC02_NAME
": can't allocate IRQ%d for QIC-02 tape
\n
"
,
QIC02_TAPE_IRQ
);
release_region
(
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
);
return
-
EBUSY
;
}
...
...
@@ -2771,13 +2774,10 @@ static int qic02_get_resources(void)
": can't allocate DMA%d for QIC-02 tape
\n
"
,
QIC02_TAPE_DMA
);
free_irq
(
QIC02_TAPE_IRQ
,
NULL
);
release_region
(
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
);
return
-
EBUSY
;
}
/* Grab the IO region. We already made sure it's available. */
request_region
(
QIC02_TAPE_PORT
,
QIC02_TAPE_PORT_RANGE
,
TPQIC02_NAME
);
/* Setup the page-address for the dma transfer. */
buffaddr
=
(
void
*
)
__get_dma_pages
(
GFP_KERNEL
,
get_order
(
TPQBUF_SIZE
));
...
...
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