Skip to content

Commit 894682f

Browse files
paliLorenzo Pieralisi
authored andcommitted
PCI: xgene: Use PCI_VENDOR_ID_AMCC macro
Header file linux/pci_ids.h defines AMCC vendor id (0x10e8) macro named PCI_VENDOR_ID_AMCC. So use this macro instead of driver custom macro. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Krzysztof Wilczyński <[email protected]>
1 parent e4e737b commit 894682f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pci/controller/pci-xgene.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
#define EN_COHERENCY 0xF0000000
4949
#define EN_REG 0x00000001
5050
#define OB_LO_IO 0x00000002
51-
#define XGENE_PCIE_VENDORID 0x10E8
5251
#define XGENE_PCIE_DEVICEID 0xE004
5352
#define SZ_1T (SZ_1G*1024ULL)
5453
#define PIPE_PHY_RATE_RD(src) ((0xc000 & (u32)(src)) >> 0xe)
@@ -560,7 +559,7 @@ static int xgene_pcie_setup(struct xgene_pcie_port *port)
560559
xgene_pcie_clear_config(port);
561560

562561
/* setup the vendor and device IDs correctly */
563-
val = (XGENE_PCIE_DEVICEID << 16) | XGENE_PCIE_VENDORID;
562+
val = (XGENE_PCIE_DEVICEID << 16) | PCI_VENDOR_ID_AMCC;
564563
xgene_pcie_writel(port, BRIDGE_CFG_0, val);
565564

566565
ret = xgene_pcie_map_ranges(port);

0 commit comments

Comments
 (0)