drivers: ethernet: Remove CONFIG_ETH_ADIN2111_INIT_PRIORITY
Simplifies the adin2111 ethernet driver to use the generic driver class initialization priority instead of a driver-specific priority. Suggested-by: Georgij Cernysiov <geo.cgv@gmail.com> Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit is contained in:
parent
e503ec4064
commit
66a03e6a38
|
@ -20,16 +20,6 @@ menuconfig ETH_ADIN2111
|
|||
|
||||
if ETH_ADIN2111
|
||||
|
||||
config ETH_ADIN2111_INIT_PRIORITY
|
||||
int "ADIN2111 driver init priority"
|
||||
default 72
|
||||
help
|
||||
ADIN2111 device driver initialization priority.
|
||||
Must be initialized after SPI, but before MDIO
|
||||
and ports.
|
||||
|
||||
Both ports use ETH_INIT_PRIORITY initialization priority.
|
||||
|
||||
config ETH_ADIN2111_IRQ_THREAD_STACK_SIZE
|
||||
int "Stack size for a thread that processes ADIN IRQ"
|
||||
default 2048
|
||||
|
|
|
@ -979,7 +979,7 @@ static const struct ethernet_api adin2111_port_api = {
|
|||
/* adin */ \
|
||||
DEVICE_DT_DEFINE(DT_DRV_INST(inst), adin2111_init, NULL, \
|
||||
&name##_data_##inst, &name##_config_##inst, \
|
||||
POST_KERNEL, CONFIG_ETH_ADIN2111_INIT_PRIORITY, \
|
||||
POST_KERNEL, CONFIG_ETH_INIT_PRIORITY, \
|
||||
NULL);
|
||||
|
||||
#define ADIN2111_MAC_INIT(inst) ADIN2111_MAC_INITIALIZE(inst, ADIN2111_MAC, 2, adin2111) \
|
||||
|
|
Loading…
Reference in a new issue