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
43f427d4
Commit
43f427d4
authored
Jun 06, 2003
by
Christoph Hellwig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] missing scsi_host_alloc bits
Sorry, I sent you the old patch again. Here's the missing driver bits.
parent
06f222c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/scsi/ips.c
drivers/scsi/ips.c
+3
-3
drivers/usb/image/hpusbscsi.c
drivers/usb/image/hpusbscsi.c
+3
-3
drivers/usb/image/microtek.c
drivers/usb/image/microtek.c
+2
-2
No files found.
drivers/scsi/ips.c
View file @
43f427d4
...
...
@@ -725,7 +725,7 @@ ips_release(struct Scsi_Host *sh) {
free_irq
(
ha
->
irq
,
ha
);
IPS_REMOVE_HOST
(
sh
);
scsi_
unregister
(
sh
);
scsi_
host_put
(
sh
);
ips_released_controllers
++
;
...
...
@@ -6732,7 +6732,7 @@ static int
ips_register_scsi
(
int
index
){
struct
Scsi_Host
*
sh
;
ips_ha_t
*
ha
,
*
oldha
=
ips_ha
[
index
];
sh
=
scsi_
register
(
&
ips_driver_template
,
sizeof
(
ips_ha_t
));
sh
=
scsi_
host_alloc
(
&
ips_driver_template
,
sizeof
(
ips_ha_t
));
if
(
!
sh
)
{
IPS_PRINTK
(
KERN_WARNING
,
oldha
->
pcidev
,
"Unable to register controller with SCSI subsystem
\n
"
);
return
-
1
;
...
...
@@ -6743,7 +6743,7 @@ ips_register_scsi( int index){
/* Install the interrupt handler with the new ha */
if
(
request_irq
(
ha
->
irq
,
do_ipsintr
,
SA_SHIRQ
,
ips_name
,
ha
))
{
IPS_PRINTK
(
KERN_WARNING
,
ha
->
pcidev
,
"Unable to install interrupt handler
\n
"
);
scsi_
unregister
(
sh
);
scsi_
host_put
(
sh
);
return
-
1
;
}
...
...
drivers/usb/image/hpusbscsi.c
View file @
43f427d4
...
...
@@ -45,7 +45,7 @@ hpusbscsi_usb_probe(struct usb_interface *intf,
struct
usb_host_interface
*
altsetting
=
intf
->
altsetting
;
struct
hpusbscsi
*
new
;
int
error
=
-
ENOMEM
;
int
i
,
result
;
int
i
;
if
(
altsetting
->
desc
.
bNumEndpoints
!=
3
)
{
printk
(
KERN_ERR
"Wrong number of endpoints
\n
"
);
...
...
@@ -104,7 +104,7 @@ hpusbscsi_usb_probe(struct usb_interface *intf,
goto
out_free_controlurb
;
/* In host->hostdata we store a pointer to desc */
new
->
host
=
scsi_
register
(
&
hpusbscsi_scsi_host_template
,
sizeof
(
new
));
new
->
host
=
scsi_
host_alloc
(
&
hpusbscsi_scsi_host_template
,
sizeof
(
new
));
if
(
!
new
->
host
)
goto
out_unlink_controlurb
;
...
...
@@ -137,7 +137,7 @@ hpusbscsi_usb_disconnect(struct usb_interface *intf)
scsi_remove_host
(
desc
->
host
);
usb_unlink_urb
(
desc
->
controlurb
);
scsi_
unregister
(
desc
->
host
);
scsi_
host_put
(
desc
->
host
);
usb_free_urb
(
desc
->
controlurb
);
usb_free_urb
(
desc
->
dataurb
);
...
...
drivers/usb/image/microtek.c
View file @
43f427d4
...
...
@@ -811,7 +811,7 @@ static int mts_usb_probe(struct usb_interface *intf,
MTS_WARNING
(
"will this work? Image data EP is not usually %d
\n
"
,
(
int
)
new_desc
->
ep_image
);
new_desc
->
host
=
scsi_
register
(
&
mts_scsi_host_template
,
new_desc
->
host
=
scsi_
host_alloc
(
&
mts_scsi_host_template
,
sizeof
(
new_desc
));
if
(
!
new_desc
->
host
)
goto
out_free_urb
;
...
...
@@ -838,7 +838,7 @@ static void mts_usb_disconnect (struct usb_interface *intf)
scsi_remove_host
(
desc
->
host
);
usb_unlink_urb
(
desc
->
urb
);
scsi_
unregister
(
desc
->
host
);
scsi_
host_put
(
desc
->
host
);
usb_free_urb
(
desc
->
urb
);
kfree
(
desc
);
...
...
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