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
db50a374
Commit
db50a374
authored
May 20, 2003
by
Dave Jones
Committed by
James Bottomley
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] AM53C974 request region.
Request port before using it.
parent
c793748d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
drivers/scsi/AM53C974.c
drivers/scsi/AM53C974.c
+7
-0
No files found.
drivers/scsi/AM53C974.c
View file @
db50a374
...
@@ -732,6 +732,12 @@ static int __init AM53C974_init(Scsi_Host_Template * tpnt, struct pci_dev *pdev
...
@@ -732,6 +732,12 @@ static int __init AM53C974_init(Scsi_Host_Template * tpnt, struct pci_dev *pdev
hostdata
->
disconnecting
=
0
;
hostdata
->
disconnecting
=
0
;
hostdata
->
dma_busy
=
0
;
hostdata
->
dma_busy
=
0
;
if
(
!
request_region
(
instance
->
io_port
,
128
,
"AM53C974"
))
{
printk
(
"AM53C974 (scsi%d): Could not get IO region %04lx.
\n
"
,
instance
->
host_no
,
instance
->
io_port
);
scsi_unregister
(
instance
);
return
0
;
}
/* Set up an interrupt handler if we aren't already sharing an IRQ with another board */
/* Set up an interrupt handler if we aren't already sharing an IRQ with another board */
for
(
search
=
first_host
;
for
(
search
=
first_host
;
search
&&
(((
the_template
!=
NULL
)
&&
(
search
->
hostt
!=
the_template
))
||
search
&&
(((
the_template
!=
NULL
)
&&
(
search
->
hostt
!=
the_template
))
||
...
@@ -2442,6 +2448,7 @@ static int AM53C974_reset(Scsi_Cmnd * cmd, unsigned int reset_flags)
...
@@ -2442,6 +2448,7 @@ static int AM53C974_reset(Scsi_Cmnd * cmd, unsigned int reset_flags)
static
int
AM53C974_release
(
struct
Scsi_Host
*
shp
)
static
int
AM53C974_release
(
struct
Scsi_Host
*
shp
)
{
{
free_irq
(
shp
->
irq
,
shp
);
free_irq
(
shp
->
irq
,
shp
);
release_region
(
shp
->
io_port
,
128
);
scsi_unregister
(
shp
);
scsi_unregister
(
shp
);
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