浏览代码

ahci_platform: properly set up EM messaging

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Jeff Garzik 15 年之前
父节点
当前提交
55787183ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ata/ahci_platform.c

+ 1 - 1
drivers/ata/ahci_platform.c

@@ -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)))