summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-acpi.c
diff options
context:
space:
mode:
authorSander Eikelenboom <linux@eikelenboom.it>2013-03-01 11:16:42 (GMT)
committerJeff Garzik <jgarzik@redhat.com>2013-03-04 22:12:19 (GMT)
commitdfd573644ce4ba1c9fbd625512bcfccf8c5ce7ff (patch)
tree1d423917c8748d11032e92e32d0f61425e18ba2f /drivers/ata/libata-acpi.c
parentc99cc9a2f19c29108ddb2e1ceb6f3baa536357d2 (diff)
downloadlinux-dfd573644ce4ba1c9fbd625512bcfccf8c5ce7ff.tar.xz
libata-acpi.c: fix copy and paste mistake in ata_acpi_register_power_resource
Fix a copy and paste mistake introduced in: commit bc9b6407bd6df3ab7189e5622816bbc11ae9d2d8 "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>
Diffstat (limited to 'drivers/ata/libata-acpi.c')
-rw-r--r--drivers/ata/libata-acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-acpi.c b/drivers/ata/libata-acpi.c
index 0ea1018..cb3eab6d 100644
--- a/drivers/ata/libata-acpi.c
+++ b/drivers/ata/libata-acpi.c
@@ -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)