Skip to contentSkip to conversation

netdev/phy: mdio-mux-mmioreg.c should include of_address.h

PATCH Superseded Timur Tabi 2 participants 2 messages Sep 7, 2012

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 netdev/phy: mdio-mux-mmioreg.c should include of_address.h

mdio-mux-mmioreg.c uses function of_address_to_resource(), which is defined in linux/of_address.h. This fixes a compilation error:

drivers/net/phy/mdio-mux-mmioreg.c: In function 'mdio_mux_mmioreg_probe':
drivers/net/phy/mdio-mux-mmioreg.c:83:2: error: implicit declaration of
function 'of_address_to_resource'

---
 drivers/net/phy/mdio-mux-mmioreg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/phy/mdio-mux-mmioreg.c +1 -0
index 098239a..9061ba6 100644
@@ -12,6 +12,7 @@
 
 #include <linux/platform_device.h>
 #include <linux/device.h>
+#include <linux/of_address.h>
 #include <linux/of_mdio.h>
 #include <linux/module.h>
 #include <linux/init.h>
Signature · 1 line
1.7.3.4
maintainer
#1 lore raw

From: Timur Tabi <[email protected]>
Date: Fri, 7 Sep 2012 15:09:52 -0500

Quoted 8 lines

mdio-mux-mmioreg.c uses function of_address_to_resource(), which is defined in linux/of_address.h. This fixes a compilation error:

drivers/net/phy/mdio-mux-mmioreg.c: In function 'mdio_mux_mmioreg_probe':
drivers/net/phy/mdio-mux-mmioreg.c:83:2: error: implicit declaration of
function 'of_address_to_resource'

Please provide "Reported-by: ..." tags to give credit to the problem reporter, Randy Dunlap in this case.