drivers: ethernet: dsa_ksz8xxx: use NET_DEVICE_DT_DEFINE_INSTANCE
Move to using NET_DEVICE_DT_DEFINE_INSTANCE instead of NET_DEVICE_INIT_INSTANCE as the driver is devicetree based and it lets us remove DT_LABEL usage in the driver itself. Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
c08442c85a
commit
f78a081066
1 changed files with 1 additions and 2 deletions
|
@ -1064,8 +1064,7 @@ static struct dsa_api dsa_api_f = {
|
|||
const struct dsa_slave_config dsa_0_slave_##slave##_config = { \
|
||||
.mac_addr = DT_PROP_OR(slave, local_mac_address, {0}) \
|
||||
}; \
|
||||
NET_DEVICE_INIT_INSTANCE(dsa_slave_port_##slave, \
|
||||
DT_LABEL(slave), \
|
||||
NET_DEVICE_DT_DEFINE_INSTANCE(slave, \
|
||||
n, \
|
||||
dsa_port_init, \
|
||||
NULL, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue