Skip to content

Commit

Permalink
niu: always include of_device.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Grant Likely committed Jul 5, 2010
1 parent f9f5a46 commit 4f0ddcb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/niu.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
#include <linux/slab.h>

#include <linux/io.h>

#ifdef CONFIG_SPARC64
#include <linux/of_device.h>
#endif

#include "niu.h"

Expand Down

0 comments on commit 4f0ddcb

Please sign in to comment.