drivers/staging/fsl-mc: Use devm_memremap/devm_ioremap for DPIO
authorRoy Pledge <roy.pledge@nxp.com>
Tue, 27 Mar 2018 18:13:31 +0000 (14:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:51:34 +0000 (15:51 +0200)
commit03fcedc20ebe164b49c458d9b4a7d5b1b42e4fdd
tree0844cf76782aabbd3ffb8475978ff14f6d82577f
parent72cbd314bc79ba105d9e0184e4b00b2cf6f3b42d
drivers/staging/fsl-mc: Use devm_memremap/devm_ioremap for DPIO

Change the mapping of the QBMan cache enabled area from using ioremap_wc()
to devm_memremap(). This allows the __iomem attribute to be removed from
the pointer (which makes sense as accesses treat this as cacheable memory
not IO memory).  These changes allow sparse checks to pass.

Also use devm_ioremap() for the cache inhibited area so unmap occurs
automatically when the device is released.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/dpio/dpio-driver.c
drivers/staging/fsl-mc/bus/dpio/qbman-portal.h
drivers/staging/fsl-mc/include/dpaa2-io.h