From: Jason Gunthorpe Date: Mon, 7 Jan 2019 17:54:14 +0000 (+0000) Subject: phy: ti: Fix compilation failures without REGMAP X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7acf8b36a2ac6eb4fdc53c4d862570089e56c69e;p=linux.git phy: ti: Fix compilation failures without REGMAP This driver requires regmap or the compile fails: drivers/phy/ti/phy-gmii-sel.c:43:27: error: array type has incomplete element type ‘struct reg_field’ const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; Add it to kconfig. Signed-off-by: Jason Gunthorpe Signed-off-by: David S. Miller --- diff --git a/drivers/phy/ti/Kconfig b/drivers/phy/ti/Kconfig index f137e01077646..c4709ed7fb0e7 100644 --- a/drivers/phy/ti/Kconfig +++ b/drivers/phy/ti/Kconfig @@ -82,6 +82,7 @@ config PHY_TI_GMII_SEL default y if TI_CPSW=y depends on TI_CPSW || COMPILE_TEST select GENERIC_PHY + select REGMAP default m help This driver supports configuring of the TI CPSW Port mode depending on