niu: always include of_device.h
authorRandy Dunlap <randy.dunlap@oracle.com>
Wed, 9 Jun 2010 22:44:09 +0000 (15:44 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 5 Jul 2010 22:14:51 +0000 (16:14 -0600)
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>
drivers/net/niu.c

index 5dd50b6ae77634665a100253c1a3810cad8ea516..f6ecf6180f72476c8e531780221126c032ca1eb8 100644 (file)
 #include <linux/slab.h>
 
 #include <linux/io.h>
-
-#ifdef CONFIG_SPARC64
 #include <linux/of_device.h>
-#endif
 
 #include "niu.h"