]> www.infradead.org Git - users/willy/pagecache.git/commit
stmmac: loongson: Pass correct arg to PCI function
authorPhilipp Stanner <phasta@kernel.org>
Wed, 26 Feb 2025 08:52:05 +0000 (09:52 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 02:36:37 +0000 (18:36 -0800)
commit00371a3f48775967950c2fe3ec97b7c786ca956d
tree9f07e10965d628e2854be6e1e0856b57bf2f4520
parentada9ce437a4da8e27243251bd7a9ecec32ebd72a
stmmac: loongson: Pass correct arg to PCI function

pcim_iomap_regions() should receive the driver's name as its third
parameter, not the PCI device's name.

Define the driver name with a macro and use it at the appropriate
places, including pcim_iomap_regions().

Cc: stable@vger.kernel.org # v5.14+
Fixes: 30bba69d7db4 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Tested-by: Henry Chen <chenx97@aosc.io>
Link: https://patch.msgid.link/20250226085208.97891-2-phasta@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c