summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-12-04 15:31:08 +0300
committerTom Rini <trini@konsulko.com>2022-12-08 18:46:01 +0300
commitbd0ed9a2d251d68e6327656f3d8ef2f145396ee4 (patch)
tree17f8ae961ae278843325ccfcc43cee619528565d
parentaeea67f9a033ab6f3adca7b30bbd02579f72512f (diff)
downloadu-boot-bd0ed9a2d251d68e6327656f3d8ef2f145396ee4.tar.xz
ata: ahci-pci: Replace magic constant by macro
Replace 0x1b21 by macro PCI_VENDOR_ID_ASMEDIA with the same value. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/ata/ahci-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c
index 797e0d570e..5356b9d83d 100644
--- a/drivers/ata/ahci-pci.c
+++ b/drivers/ata/ahci-pci.c
@@ -37,7 +37,7 @@ U_BOOT_DRIVER(ahci_pci) = {
static struct pci_device_id ahci_pci_supported[] = {
{ PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, ~0) },
- { PCI_DEVICE(0x1b21, 0x0611) },
+ { PCI_DEVICE(PCI_VENDOR_ID_ASMEDIA, 0x0611) },
{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x6121) },
{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL, 0x6145) },
{},