[PATCH u-boot-marvell 14/19] net: mvneta: Rename CONFIG_NR_CPUS to MVNETA_NR_CPUS

Stefan Roese sr at denx.de
Mon May 2 09:02:25 CEST 2022


On 27.04.22 12:41, Marek Behún wrote:
> From: Marek Behún <marek.behun at nic.cz>
> 
> The CONFIG_* macros are reserved for Kconfig. This was probably done
> when this driver was being imported from Linux. Rename the macro.
> 
> Signed-off-by: Marek Behún <marek.behun at nic.cz>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan


> ---
>   drivers/net/mvneta.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c
> index 0ec9d2957c..519e06ff01 100644
> --- a/drivers/net/mvneta.c
> +++ b/drivers/net/mvneta.c
> @@ -40,7 +40,7 @@
>   
>   DECLARE_GLOBAL_DATA_PTR;
>   
> -#define CONFIG_NR_CPUS		1
> +#define MVNETA_NR_CPUS		1
>   #define ETH_HLEN		14	/* Total octets in header */
>   
>   /* 2(HW hdr) 14(MAC hdr) 4(CRC) 32(extra for cache prefetch) */
> @@ -770,7 +770,7 @@ static void mvneta_defaults_set(struct mvneta_port *pp)
>   	/* Set CPU queue access map - all CPUs have access to all RX
>   	 * queues and to all TX queues
>   	 */
> -	for (cpu = 0; cpu < CONFIG_NR_CPUS; cpu++)
> +	for (cpu = 0; cpu < MVNETA_NR_CPUS; cpu++)
>   		mvreg_write(pp, MVNETA_CPU_MAP(cpu),
>   			    (MVNETA_CPU_RXQ_ACCESS_ALL_MASK |
>   			     MVNETA_CPU_TXQ_ACCESS_ALL_MASK));

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