]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Drop include of linux/io.h from asm/io.h
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 13 Apr 2017 13:14:36 +0000 (23:14 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 13 Apr 2017 13:34:35 +0000 (23:34 +1000)
commit8ab18f0a68b39212ecd4c16635dd0a5ceaf4cad2
treed5950a32f3c62c211b2c363a7bf31a7d5d18fd45
parent0a7e2eafdc1a5992e0ec020e995d4aba39c0a429
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 9dab691fa2dd
("[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 e76b9eed5694 ("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: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/io.h