]> git.baikalelectronics.ru Git - kernel.git/commitdiff
phy: ti: Fix compilation failures without REGMAP
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 7 Jan 2019 17:54:14 +0000 (17:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2019 19:21:37 +0000 (14:21 -0500)
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 <jgg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/phy/ti/Kconfig

index f137e010776463d03e59f02a33a96002070d628d..c4709ed7fb0e72b78b58cb871c63aecf93189e03 100644 (file)
@@ -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