diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2022-11-08 07:10:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-11-08 11:12:49 +0100 |
commit | efa71ac208a8dbbdc60a319d02284c4878302950 (patch) | |
tree | 3ea79f8a2ba439aa22a490e9844eb879f6010833 /include | |
parent | 55d6d85d7c1c05175470f717ab8074095aabc530 (diff) | |
download | barebox-efa71ac208a8dbbdc60a319d02284c4878302950.tar.gz barebox-efa71ac208a8dbbdc60a319d02284c4878302950.tar.xz |
net: dsa: fix of_device_ensure_probed*() for switch ports
Create ports by using of_platform_device_create() in the same way as it
is used by of_device_ensure_probed*(). Otherwise we are creating
multiple devices for the same node.
At same time we need to link dummy driver to make this logic work.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.barebox.org/20221108061009.4168735-6-o.rempel@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/dsa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dsa.h b/include/dsa.h index 75a939f2cb..f428aa74a5 100644 --- a/include/dsa.h +++ b/include/dsa.h @@ -58,7 +58,7 @@ struct dsa_ops { }; struct dsa_port { - struct device_d dev; + struct device_d *dev; struct dsa_switch *ds; unsigned int index; struct eth_device edev; |