From: Tianchen Ding Date: Tue, 30 Nov 2021 11:02:09 +0000 (+0800) Subject: net: mdio: mscc-miim: Add depend of REGMAP_MMIO on MDIO_MSCC_MIIM X-Git-Tag: v6.1-rc5~2306^2~283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8057cbb8335cf6d419866737504473833e1d128a;p=platform%2Fkernel%2Flinux-starfive.git net: mdio: mscc-miim: Add depend of REGMAP_MMIO on MDIO_MSCC_MIIM There's build error while CONFIG_REGMAP_MMIO is not set and CONFIG_MDIO_MSCC_MIIM=m. ERROR: modpost: "__devm_regmap_init_mmio_clk" [drivers/net/mdio/mdio-mscc-miim.ko] undefined! Add the depend of REGMAP_MMIO to fix it. Fixes: a27a76282837 ("net: mdio: mscc-miim: convert to a regmap implementation") Signed-off-by: Tianchen Ding Reviewed-by: Andrew Lunn Link: https://lore.kernel.org/r/20211130110209.804536-1-dtcccc@linux.alibaba.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/mdio/Kconfig b/drivers/net/mdio/Kconfig index 6da1fcb..bfa1682 100644 --- a/drivers/net/mdio/Kconfig +++ b/drivers/net/mdio/Kconfig @@ -141,7 +141,7 @@ config MDIO_MVUSB config MDIO_MSCC_MIIM tristate "Microsemi MIIM interface support" - depends on HAS_IOMEM + depends on HAS_IOMEM && REGMAP_MMIO select MDIO_DEVRES help This driver supports the MIIM (MDIO) interface found in the network