summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-transport.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2011-12-05 09:20:27 +0800
committerJeff Garzik <jgarzik@redhat.com>2012-01-08 19:14:58 -0500
commit5ef41082912bdfcb33fa53b8dba2ad17dea2ef90 (patch)
treeb63aff744994b75af6c3e5e5e70e01312027992e /drivers/ata/libata-transport.c
parent54f57588463db1105f4a93b2902a6f95cb8f796a (diff)
downloadlwn-5ef41082912bdfcb33fa53b8dba2ad17dea2ef90.tar.gz
lwn-5ef41082912bdfcb33fa53b8dba2ad17dea2ef90.zip
ata: add ata port system PM callbacks
Change ata_host_request_pm to ata_port_request_pm which performs port suspend/resume. Add ata port type driver which implements port PM callbacks. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-transport.c')
-rw-r--r--drivers/ata/libata-transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index ce9dc6207f37..3ceb3d94be26 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -279,6 +279,7 @@ int ata_tport_add(struct device *parent,
struct device *dev = &ap->tdev;
device_initialize(dev);
+ dev->type = &ata_port_type;
dev->parent = get_device(parent);
dev->release = ata_tport_release;