aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2010-06-09 18:44:09 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 18:14:51 -0400
commit4f0ddcb020ef8afae65b4edb9aeb4a42ab74f4cf (patch)
tree5ab7cfc71e9de82e711a37d079cb0ecfa1aab632 /drivers/net/niu.c
parentf9f5a4669f1334a558f102c311debfd008e7c2bc (diff)
niu: always include of_device.h
The niu driver uses struct of_device when built on any arch, not only SPARC64, so always #include <linux/of_device.h>. drivers/net/niu.c:9700: warning: 'struct of_device' declared inside parameter list drivers/net/niu.c:9700: warning: its scope is only this definition or declaration, which is probably not what you want drivers/net/niu.c:9716: warning: assignment from incompatible pointer type Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Dave S. Miller <davem@davemloft.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 5dd50b6ae776..f6ecf6180f72 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -28,10 +28,7 @@
28#include <linux/slab.h> 28#include <linux/slab.h>
29 29
30#include <linux/io.h> 30#include <linux/io.h>
31
32#ifdef CONFIG_SPARC64
33#include <linux/of_device.h> 31#include <linux/of_device.h>
34#endif
35 32
36#include "niu.h" 33#include "niu.h"
37 34