Commit 590c369e authored by Michael Ellerman's avatar Michael Ellerman

powerpc: Drop include of linux/io.h from asm/io.h

Currently powerpc's asm/io.h includes linux/io.h, and linux/io.h
includes asm/io.h.

This can cause problems because depending on which is included first the
order of definitions between the two files will change.

The include of linux/io.h was added back in 2008 in commit b41e5fff
("[POWERPC] devres: Add devm_ioremap_prot()"). It's not entirely clear
it was needed then, but devm_ioremap_prot() has since been removed
entirely as unused, in dedd24a1 ("powerpc: Remove unused
devm_ioremap_prot()").

So it seems to be unnecessary and can potentially cause problems, so
remove the include of linux/io.h from asm/io.h
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6b3edefe
...@@ -25,8 +25,6 @@ extern struct pci_dev *isa_bridge_pcidev; ...@@ -25,8 +25,6 @@ extern struct pci_dev *isa_bridge_pcidev;
#endif #endif
#include <linux/device.h> #include <linux/device.h>
#include <linux/io.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment