[PATCH 1/2] pci: pci_mvebu: Remove unused SELECT and lane_mask

Stefan Roese sr at denx.de
Fri Mar 4 13:21:23 CET 2022


On 2/18/22 15:17, Stefan Roese wrote:
> On 2/18/22 12:25, Pali Rohár wrote:
>> Macro SELECT() is unused and struct mvebu_pcie field lane_mask is unused
>> too. Remove them.
>>
>> Signed-off-by: Pali Rohár <pali at kernel.org>
> 
> Reviewed-by: Stefan Roese <sr at denx.de>

Applied to u-boot-marvell/master

Thanks,
Stefan

> Thanks,
> Stefan
> 
>> ---
>>   drivers/pci/pci_mvebu.c | 3 ---
>>   1 file changed, 3 deletions(-)
>>
>> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c
>> index 5a0a59a8b9ec..16fe54fd366f 100644
>> --- a/drivers/pci/pci_mvebu.c
>> +++ b/drivers/pci/pci_mvebu.c
>> @@ -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;
> 
> Viele Grüße,
> Stefan Roese
> 

Viele Grüße,
Stefan Roese

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list