Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15648
b: refs/heads/master
c: e7a1ca1
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and James Bottomley committed Dec 15, 2005
1 parent 4497516 commit 6bf6958
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 829b84675edbe05f11c289946216da4f5c6b8e94
refs/heads/master: e7a1ca1d27e20ea2c0ba161c57e3c1d4112b60f7
11 changes: 9 additions & 2 deletions trunk/drivers/scsi/aic7xxx/aic79xx_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ ahd_linux_register_host(struct ahd_softc *ahd, struct scsi_host_template *templa
struct Scsi_Host *host;
char *new_name;
u_long s;
int retval;

template->name = ahd->description;
host = scsi_host_alloc(template, sizeof(struct ahd_softc *));
Expand Down Expand Up @@ -1096,9 +1097,15 @@ ahd_linux_register_host(struct ahd_softc *ahd, struct scsi_host_template *templa

host->transportt = ahd_linux_transport_template;

scsi_add_host(host, &ahd->dev_softc->dev); /* XXX handle failure */
retval = scsi_add_host(host, &ahd->dev_softc->dev);
if (retval) {
printk(KERN_WARNING "aic79xx: scsi_add_host failed\n");
scsi_host_put(host);
return retval;
}

scsi_scan_host(host);
return (0);
return 0;
}

uint64_t
Expand Down

0 comments on commit 6bf6958

Please sign in to comment.