Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
ap->pflags |= ATA_PFLAG_INIT_GTM_VALID;
}
-static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device
+static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device
*dev, u32 event)
{
char event_string[12];
acpi_handle handle, tmphandle;
unsigned long sta;
acpi_status status;
-
+
if (!ap)
ap = dev->link->ap;
ehi = &ap->link.eh_info;
else {
struct ata_link *tlink;
struct ata_device *tdev;
-
+
ata_port_for_each_link(tlink, ap) {
ata_link_for_each_dev(tdev, tlink) {
- tdev->flags |=
+ tdev->flags |=
ATA_DFLAG_DETACH;
}
}
struct ata_port *alt = host->ports[1 ^ qc->ap->port_no];
int rc;
- /* First apply the usual rules */
+ /* First apply the usual rules */
rc = ata_std_qc_defer(qc);
if (rc != 0)
return rc;