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 19bfd1d..5e11b16 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)))