diff options
author | Harry Zhang <harry.zhang@amd.com> | 2010-04-23 17:27:19 +0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-14 17:35:51 -0400 |
commit | 008dbd61ebee3e647f63bbe8315192e1331cd75f (patch) | |
tree | 2848b7364622cceb29b596c95c7c2681a40adcfc /drivers/ata/ahci.c | |
parent | ec86c81dfcc52e313920621b1d1e92343a842afe (diff) | |
download | blackbird-op-linux-008dbd61ebee3e647f63bbe8315192e1331cd75f.tar.gz blackbird-op-linux-008dbd61ebee3e647f63bbe8315192e1331cd75f.zip |
ahci: EM message type auto detect
Detect enclosure management message type automatically at driver
initialization, instead of using module parameter "ahci_em_messages".
Signed-off-by: Harry Zhang <harry.zhang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index c44d11237db4..8ca16f54e1ed 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1185,7 +1185,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) /* 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 */ |