From: Olof Johansson Date: Tue, 20 Dec 2011 21:13:07 +0000 (-0800) Subject: net: macb: fix build break with !CONFIG_OF X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b17471f5d121a53be1ccf6e0b0599441e56b468c;p=linux-beck.git net: macb: fix build break with !CONFIG_OF 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 Acked-by: Nicolas Ferre --- diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index baf1a0d88d8a..f3d5c65d99cf 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include