]> git.baikalelectronics.ru Git - uboot.git/commitdiff
pci: pci_mvebu: Remove unused SELECT and lane_mask
authorPali Rohár <pali@kernel.org>
Fri, 18 Feb 2022 11:25:22 +0000 (12:25 +0100)
committerStefan Roese <sr@denx.de>
Fri, 4 Mar 2022 07:38:05 +0000 (08:38 +0100)
Macro SELECT() is unused and struct mvebu_pcie field lane_mask is unused
too. Remove them.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_mvebu.c

index 5a0a59a8b9ecd34d44d0f9ddf725e1e755d506b3..16fe54fd366f3b6ca1ffa4f1b4978fe14239025d 100644 (file)
@@ -30,8 +30,6 @@
 #include <linux/sizes.h>
 
 /* PCIe unit register offsets */
-#define SELECT(x, n)                   ((x >> n) & 1UL)
-
 #define PCIE_DEV_ID_OFF                        0x0000
 #define PCIE_CMD_OFF                   0x0004
 #define PCIE_DEV_REV_OFF               0x0008
@@ -77,7 +75,6 @@ struct mvebu_pcie {
        u32 lane;
        bool is_x4;
        int devfn;
-       u32 lane_mask;
        int sec_busno;
        char name[16];
        unsigned int mem_target;