diff mbox series

[net-next] net: mdio: octeon: Select MDIO_DEVRES

Message ID 20200917161949.3598839-1-andrew@lunn.ch
State New
Headers show
Series [net-next] net: mdio: octeon: Select MDIO_DEVRES | expand

Commit Message

Andrew Lunn Sept. 17, 2020, 4:19 p.m. UTC
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>
---
 drivers/net/mdio/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Randy Dunlap Sept. 17, 2020, 5:13 p.m. UTC | #1
On 9/17/20 9:19 AM, Andrew Lunn wrote:
> This driver makes use of devm_mdiobus_alloc_size. To ensure this is
> available select MDIO_DEVRES which provides it.
> 

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested

Thanks.

> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
>  drivers/net/mdio/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/mdio/Kconfig b/drivers/net/mdio/Kconfig
> index 1299880dfe74..840727cc9499 100644
> --- a/drivers/net/mdio/Kconfig
> +++ b/drivers/net/mdio/Kconfig
> @@ -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
>
diff mbox series

Patch

diff --git a/drivers/net/mdio/Kconfig b/drivers/net/mdio/Kconfig
index 1299880dfe74..840727cc9499 100644
--- a/drivers/net/mdio/Kconfig
+++ b/drivers/net/mdio/Kconfig
@@ -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