Skip to content

Commit

Permalink
libata-acpi.c: fix copy and paste mistake in ata_acpi_register_power_…
Browse files Browse the repository at this point in the history
…resource

Fix a copy and paste mistake introduced in:

commit bc9b640
"ACPI / PM: Rework the handling of devices depending on power resources"

Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Sander Eikelenboom authored and Jeff Garzik committed Mar 4, 2013
1 parent c99cc9a commit dfd5736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ static void ata_acpi_register_power_resource(struct ata_device *dev)

handle = ata_dev_acpi_handle(dev);
if (handle)
acpi_dev_pm_remove_dependent(handle, &sdev->sdev_gendev);
acpi_dev_pm_add_dependent(handle, &sdev->sdev_gendev);
}

static void ata_acpi_unregister_power_resource(struct ata_device *dev)
Expand Down

0 comments on commit dfd5736

Please sign in to comment.