Skip to content

Commit 37b35d4

Browse files
committed
Merge branch 'pci/controller/altera'
- Replace TLP_REQ_ID() with macro PCI_DEVID(), which does the same thing and is what other drivers use (Jinjie Ruan) * pci/controller/altera: PCI: altera: Replace TLP_REQ_ID() with macro PCI_DEVID()
2 parents f045bc6 + 8745aaa commit 37b35d4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/pci/controller/pcie-altera.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,11 @@
5555
#define TLP_READ_TAG 0x1d
5656
#define TLP_WRITE_TAG 0x10
5757
#define RP_DEVFN 0
58-
#define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn))
5958
#define TLP_CFG_DW0(pcie, cfg) \
6059
(((cfg) << 24) | \
6160
TLP_PAYLOAD_SIZE)
6261
#define TLP_CFG_DW1(pcie, tag, be) \
63-
(((TLP_REQ_ID(pcie->root_bus_nr, RP_DEVFN)) << 16) | (tag << 8) | (be))
62+
(((PCI_DEVID(pcie->root_bus_nr, RP_DEVFN)) << 16) | (tag << 8) | (be))
6463
#define TLP_CFG_DW2(bus, devfn, offset) \
6564
(((bus) << 24) | ((devfn) << 16) | (offset))
6665
#define TLP_COMP_STATUS(s) (((s) >> 13) & 7)

0 commit comments

Comments
 (0)