mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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>
This commit is contained in:
parent
f9f5a4669f
commit
4f0ddcb020
1 changed files with 0 additions and 3 deletions
|
@ -28,10 +28,7 @@
|
|||
#include <linux/slab.h>
|
||||
|
||||
#include <linux/io.h>
|
||||
|
||||
#ifdef CONFIG_SPARC64
|
||||
#include <linux/of_device.h>
|
||||
#endif
|
||||
|
||||
#include "niu.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue