diff options
| author | 2025-11-11 11:26:44 +0000 | |
|---|---|---|
| committer | 2025-11-13 17:03:19 +0100 | |
| commit | f694d215d34035cc64b1d176fd82db0d1f2428d4 (patch) | |
| tree | 13cf8f6d22127b2cecec308edc887bb9f775307a /drivers/acpi/cppc_acpi.c | |
| parent | net: stmmac: clean up stmmac_reset() (diff) | |
| download | wireguard-linux-f694d215d34035cc64b1d176fd82db0d1f2428d4.tar.xz wireguard-linux-f694d215d34035cc64b1d176fd82db0d1f2428d4.zip | |
net: stmmac: always allocate mac_device_info
The ->setup() method implemented by dwmac-loongson and dwmac-sun8i
allocate the mac_device_info structure, as does stmmac_hwif_init().
This makes no sense.
Have stmmac_hwif_init() always allocate this structure, and pass it to
the ->setup() method to initialise when it is provided. Rename this
method to "mac_setup" to more accurately describe what it is doing.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vImWK-0000000DrIx-28vO@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
