Patchwork netdev/phy: Prototype of_mdio_find_bus()

login
register
mail settings
Submitter Mark Brown
Date Oct. 9, 2012, 8:55 a.m.
Message ID <1349772944-14289-1-git-send-email-broonie@opensource.wolfsonmicro.com>
Download mbox | patch
Permalink /patch/190243/
State Accepted
Delegated to: David Miller
Headers show

Comments

Mark Brown - Oct. 9, 2012, 8:55 a.m.
Ensure that of_mdio_find_bus() matches the prototype in the header (and
stop sparse complaining) by including the header with the prototype.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/net/phy/mdio_bus.c |    1 +
 1 file changed, 1 insertion(+)
David Miller - Oct. 9, 2012, 5:55 p.m.
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
Date: Tue,  9 Oct 2012 17:55:43 +0900

> Ensure that of_mdio_find_bus() matches the prototype in the header (and
> stop sparse complaining) by including the header with the prototype.
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c
index 170eb41..c1ef300 100644
--- a/drivers/net/phy/mdio_bus.c
+++ b/drivers/net/phy/mdio_bus.c
@@ -26,6 +26,7 @@ 
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/of_device.h>
+#include <linux/of_mdio.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>