Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33289
b: refs/heads/master
c: 6543bc0
h: refs/heads/master
i:
  33287: 4836b0e
v: v3
  • Loading branch information
Jeff Garzik authored and Tejun Heo committed Aug 4, 2006
1 parent fc1c79b commit 8149fba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 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: f31e945c50e47b7163c6018928aa93b66e8f22f0
refs/heads/master: 6543bc0777fadf129d8ee7ac82e0090fb0480403
31 changes: 6 additions & 25 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5185,28 +5185,6 @@ void ata_host_stop (struct ata_host_set *host_set)
iounmap(host_set->mmio_base);
}


/**
* ata_host_remove - Unregister SCSI host structure with upper layers
* @ap: Port to unregister
* @do_unregister: 1 if we fully unregister, 0 to just stop the port
*
* LOCKING:
* Inherited from caller.
*/

static void ata_host_remove(struct ata_port *ap, unsigned int do_unregister)
{
struct Scsi_Host *sh = ap->host;

DPRINTK("ENTER\n");

if (do_unregister)
scsi_remove_host(sh);

ap->ops->port_stop(ap);
}

/**
* ata_dev_init - Initialize an ata_device structure
* @dev: Device structure to initialize
Expand Down Expand Up @@ -5532,8 +5510,11 @@ int ata_device_add(const struct ata_probe_ent *ent)

err_out:
for (i = 0; i < count; i++) {
ata_host_remove(host_set->ports[i], 1);
scsi_host_put(host_set->ports[i]->host);
struct ata_port *ap = host_set->ports[i];

scsi_remove_host(ap->host);
ap->ops->port_stop(ap);
scsi_host_put(ap->host);
}
err_free_ret:
kfree(host_set);
Expand Down Expand Up @@ -5663,7 +5644,7 @@ int ata_scsi_release(struct Scsi_Host *host)
DPRINTK("ENTER\n");

ap->ops->port_disable(ap);
ata_host_remove(ap, 0);
ap->ops->port_stop(ap);

DPRINTK("EXIT\n");
return 1;
Expand Down

0 comments on commit 8149fba

Please sign in to comment.