net: mdio: octeon: Select MDIO_DEVRES
authorAndrew Lunn <andrew@lunn.ch>
Thu, 17 Sep 2020 16:19:49 +0000 (18:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 00:07:50 +0000 (17:07 -0700)
This driver makes use of devm_mdiobus_alloc_size. To ensure this is
available select MDIO_DEVRES which provides it.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mdio/Kconfig

index 1299880..840727c 100644 (file)
@@ -138,6 +138,7 @@ config MDIO_OCTEON
        depends on (64BIT && OF_MDIO) || COMPILE_TEST
        depends on HAS_IOMEM
        select MDIO_CAVIUM
+       select MDIO_DEVRES
        help
          This module provides a driver for the Octeon and ThunderX MDIO
          buses. It is required by the Octeon and ThunderX ethernet device