Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49bf9279 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Scott Wood
Browse files

powerpc/e8248e: Select PHYLIB only if NETDEVICES is enabled



Select PHYLIB only if NETDEVICES is enabled and MDIO_BITBANG only if
PHYLIB is present to avoid warnings from Kconfig.

To prevent undefined references during linking register MDIO driver only
if CONFIG_MDIO_BITBANG is enabled.

Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent 93c4ea38
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ config EP8248E
	select 8272
	select 8260
	select FSL_SOC
	select PHYLIB
	select MDIO_BITBANG
	select PHYLIB if NETDEVICES
	select MDIO_BITBANG if PHYLIB
	help
	  This enables support for the Embedded Planet EP8248E board.

+3 −1
Original line number Diff line number Diff line
@@ -298,6 +298,8 @@ static const struct of_device_id of_bus_ids[] __initconst = {
static int __init declare_of_platform_devices(void)
{
	of_platform_bus_probe(NULL, of_bus_ids, NULL);

	if (IS_ENABLED(CONFIG_MDIO_BITBANG))
		platform_driver_register(&ep8248e_mdio_driver);

	return 0;