Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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'

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Timur Tabi and committed by
David S. Miller
16fa9e1d ba8bd0ea

+1
+1
drivers/net/phy/mdio-mux-mmioreg.c
··· 12 12 13 13 #include <linux/platform_device.h> 14 14 #include <linux/device.h> 15 + #include <linux/of_address.h> 15 16 #include <linux/of_mdio.h> 16 17 #include <linux/module.h> 17 18 #include <linux/init.h>