mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 17:01:44 +04:00
d3577dfbf3
In the network context there might be confusion between "struct netdev" and "struct device". The driver should avoid variables of type device and name "dev" where possible. Remove all variables that point to the device and use pdev->dev instead. This is like other network drivers do it. While we are here modernize logging during probing. Remove messages from helpers and log errors during probing with dev_err_probe(). Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/23420 Signed-off-by: Robert Marko <robimarko@gmail.com>