All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] of_mdio: Enable fixed PHY support if driver is a module
@ 2016-06-21  0:17 Ben Hutchings
  2016-06-21  1:52 ` Florian Fainelli
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2016-06-21  0:17 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: CT kernel, netdev

The fixed_phy driver doesn't have to be built-in, and it's
important that of_mdio supports it even if it's a module.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
---
Re-sending with the proper subject prefix.

Ben.

--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -274,7 +274,7 @@ struct phy_device *of_phy_attach(struct
 }
 EXPORT_SYMBOL(of_phy_attach);
 
-#if defined(CONFIG_FIXED_PHY)
+#if IS_ENABLED(CONFIG_FIXED_PHY)
 /*
  * of_phy_is_fixed_link() and of_phy_register_fixed_link() must
  * support two DT bindings:
--- a/include/linux/of_mdio.h
+++ b/include/linux/of_mdio.h
@@ -69,7 +69,7 @@ static inline int of_mdio_parse_addr(str
 }
 #endif /* CONFIG_OF */
 
-#if defined(CONFIG_OF) && defined(CONFIG_FIXED_PHY)
+#if defined(CONFIG_OF) && IS_ENABLED(CONFIG_FIXED_PHY)
 extern int of_phy_register_fixed_link(struct device_node *np);
 extern bool of_phy_is_fixed_link(struct device_node *np);
 #else


-- 
Ben Hutchings
Software Developer, Codethink Ltd.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] of_mdio: Enable fixed PHY support if driver is a module
  2016-06-21  0:17 [PATCH net-next] of_mdio: Enable fixed PHY support if driver is a module Ben Hutchings
@ 2016-06-21  1:52 ` Florian Fainelli
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2016-06-21  1:52 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: CT kernel, netdev

Le 20/06/2016 17:17, Ben Hutchings a écrit :
> The fixed_phy driver doesn't have to be built-in, and it's
> important that of_mdio supports it even if it's a module.
> 
> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-21  1:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21  0:17 [PATCH net-next] of_mdio: Enable fixed PHY support if driver is a module Ben Hutchings
2016-06-21  1:52 ` Florian Fainelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.