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
e904c71a
Commit
e904c71a
authored
Mar 10, 2004
by
Aristeu Sergio Rozanski Filho
Committed by
James Bottomley
Mar 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] qlogicfas: begin to convert qlogicfas to new driver
parent
b17ececd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
drivers/scsi/qlogicfas.c
drivers/scsi/qlogicfas.c
+20
-10
No files found.
drivers/scsi/qlogicfas.c
View file @
e904c71a
...
...
@@ -652,10 +652,7 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host)
}
else
printk
(
KERN_INFO
"Ql: Using preset IRQ %d
\n
"
,
qlirq
);
if
(
qlirq
>=
0
&&
!
request_irq
(
qlirq
,
do_ql_ihandl
,
0
,
qlogicfas_name
,
NULL
))
host
->
can_queue
=
1
;
hreg
=
scsi_register
(
host
,
0
);
/* no host data */
hreg
=
scsi_host_alloc
(
host
,
0
);
/* no host data */
if
(
!
hreg
)
goto
err_release_mem
;
hreg
->
io_port
=
qbase
;
...
...
@@ -669,14 +666,25 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host)
qltyp
,
qbase
,
qlirq
,
QL_TURBO_PDMA
);
host
->
name
=
qlogicfas_name
;
if
(
request_irq
(
qlirq
,
do_ql_ihandl
,
0
,
qlogicfas_name
,
hreg
))
goto
free_scsi_host
;
if
(
scsi_add_host
(
hreg
,
NULL
))
goto
free_interrupt
;
scsi_scan_host
(
hreg
);
return
hreg
;
free_interrupt:
free_irq
(
qlirq
,
hreg
);
free_scsi_host:
scsi_host_put
(
hreg
);
err_release_mem:
release_region
(
qbase
,
0x10
);
if
(
host
->
can_queue
)
free_irq
(
qlirq
,
do_ql_ihandl
);
return
NULL
;;
return
NULL
;
}
int
__devinit
qlogicfas_detect
(
Scsi_Host_Template
*
sht
)
...
...
@@ -687,12 +695,14 @@ int __devinit qlogicfas_detect(Scsi_Host_Template *sht)
static
int
qlogicfas_release
(
struct
Scsi_Host
*
shost
)
{
if
(
shost
->
irq
)
free_irq
(
shost
->
irq
,
NULL
);
free_irq
(
shost
->
irq
,
shost
);
if
(
shost
->
dma_channel
!=
0xff
)
free_dma
(
shost
->
dma_channel
);
if
(
shost
->
io_port
&&
shost
->
n_io_port
)
release_region
(
shost
->
io_port
,
shost
->
n_io_port
);
scsi_unregister
(
shost
);
scsi_remove_host
(
shost
);
scsi_host_put
(
shost
);
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