]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: macb: fix build break with !CONFIG_OF
authorOlof Johansson <olof@lixom.net>
Tue, 20 Dec 2011 21:13:07 +0000 (13:13 -0800)
committerOlof Johansson <olof@lixom.net>
Wed, 21 Dec 2011 21:57:25 +0000 (13:57 -0800)
This fixes the build of the macb driver that was broken by the DT changes:

drivers/net/ethernet/cadence/macb.c:1503: error: implicit declaration of function 'of_match_ptr'
drivers/net/ethernet/cadence/macb.c:1503: error: 'macb_dt_ids' undeclared here (not in a function)
drivers/net/ethernet/cadence/macb.c:1503: error: initializer element is not constant
drivers/net/ethernet/cadence/macb.c:1503: error: (near initialization for 'macb_driver.driver.of_match_table')

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/net/ethernet/cadence/macb.c

index baf1a0d88d8aacac6ce19fc0d3373cce0131fedd..f3d5c65d99cf20ae57f14fc9b7dd2007d81bba85 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/platform_data/macb.h>
 #include <linux/platform_device.h>
 #include <linux/phy.h>
+#include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/of_net.h>