diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2022-04-27 12:41:57 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2022-05-04 07:05:51 +0200 |
commit | 31f4ccca0aa21a8dc14fc6021e8b598dca26489c (patch) | |
tree | 072718497041b81ecd7e780f9f27f02d6d0c1355 | |
parent | 730dad9919bad79689069b181f5d240c761c35e0 (diff) | |
download | u-boot-31f4ccca0aa21a8dc14fc6021e8b598dca26489c.zip u-boot-31f4ccca0aa21a8dc14fc6021e8b598dca26489c.tar.gz u-boot-31f4ccca0aa21a8dc14fc6021e8b598dca26489c.tar.bz2 |
net: mvneta: Rename CONFIG_NR_CPUS to MVNETA_NR_CPUS
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@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | drivers/net/mvneta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index 0ec9d29..519e06f 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)); |