Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Randy Dunlap and committed by
Grant Likely
4f0ddcb0 f9f5a466

-3
-3
drivers/net/niu.c
··· 28 28 #include <linux/slab.h> 29 29 30 30 #include <linux/io.h> 31 - 32 - #ifdef CONFIG_SPARC64 33 31 #include <linux/of_device.h> 34 - #endif 35 32 36 33 #include "niu.h" 37 34