ahci_platform: properly set up EM messaging
authorJeff Garzik <jeff@garzik.org>
Fri, 14 May 2010 21:23:37 +0000 (17:23 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 May 2010 21:35:51 +0000 (17:35 -0400)
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci_platform.c

index 19bfd1d76d40dfca16b9859db64e4c4f3763887a..5e11b160f247a10c6ae456f7d9bb02ec0ba743a4 100644 (file)
@@ -125,7 +125,7 @@ static int __init ahci_probe(struct platform_device *pdev)
 
                /* set enclosure management message type */
                if (ap->flags & ATA_FLAG_EM)
-                       ap->em_message_type = ahci_em_messages;
+                       ap->em_message_type = hpriv->em_msg_type;
 
                /* disabled/not-implemented port */
                if (!(hpriv->port_map & (1 << i)))