]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: get rid of struct device
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 17 May 2026 19:47:09 +0000 (21:47 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 21 May 2026 10:19:47 +0000 (12:19 +0200)
commitd3577dfbf3e1dd516732a7f4cb31a8380cb8f577
treec4834e1bead66da09526caf69f4e28cc66c36c73
parent04433b4e75cc96b146846db531b2f3222b9b6530
realtek: eth: get rid of struct device

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>
target/linux/realtek/files-6.18/drivers/net/ethernet/rtl838x_eth.c