Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15649
b: refs/heads/master
c: 9e1fe93
h: refs/heads/master
i:
  15647: 4497516
v: v3
  • Loading branch information
Jesper Juhl authored and James Bottomley committed Dec 15, 2005
1 parent 6bf6958 commit 58f9a0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 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: e7a1ca1d27e20ea2c0ba161c57e3c1d4112b60f7
refs/heads/master: 9e1fe9314cb5649b2dc73690f2cd8d0068e633d9
18 changes: 13 additions & 5 deletions trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,10 +1061,11 @@ uint32_t aic7xxx_verbose;
int
ahc_linux_register_host(struct ahc_softc *ahc, struct scsi_host_template *template)
{
char buf[80];
struct Scsi_Host *host;
char buf[80];
struct Scsi_Host *host;
char *new_name;
u_long s;
u_long s;
int retval;

template->name = ahc->description;
host = scsi_host_alloc(template, sizeof(struct ahc_softc *));
Expand Down Expand Up @@ -1097,9 +1098,16 @@ ahc_linux_register_host(struct ahc_softc *ahc, struct scsi_host_template *templa

host->transportt = ahc_linux_transport_template;

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

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

/*
Expand Down

0 comments on commit 58f9a0b

Please sign in to comment.