drivers: ethernet: add dependency to CONFIG_ETH_INIT_PRIORITY

Add a dependency on CONFIG_NET_L2_ETHERNET for
CONFIG_ETH_INIT_PRIORITY. This hides the Ethernet driver initialization
priority option in menuconfig unless CONFIG_NET_L2_ETHERNET is selected.

CONFIG_ETH_INIT_PRIORITY cannot currently be moved inside the
CONFIG_ETH_DRIVER if-statement in Kconfig as it is used outside the
Ethernet driver source files.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-03-30 10:38:12 +02:00 committed by Carles Cufí
commit 407eedbafa

View file

@ -66,6 +66,7 @@ endif # "Ethernet Drivers"
config ETH_INIT_PRIORITY config ETH_INIT_PRIORITY
int "Ethernet driver init priority" int "Ethernet driver init priority"
default 80 default 80
depends on NET_L2_ETHERNET
help help
Ethernet device driver initialization priority. Ethernet device driver initialization priority.
Do not mess with it unless you know what you are doing. Do not mess with it unless you know what you are doing.