]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: ixp4xx: qmgr: Pass resources
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 10 Feb 2019 19:20:10 +0000 (20:20 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Apr 2019 14:02:16 +0000 (16:02 +0200)
commitecc133c6da60377c54a117841d630612d9f49964
tree2cba2fc0875fd114d55f877d5187ea956c8147f2
parent6b39031954568afdf38169573544f6e7c1f4d321
soc: ixp4xx: qmgr: Pass resources

Instead of using hardcoded base address implicitly
obtained through <linux/io.h>, pass the physical base
for the QMGR block as a memory resource and remap
it in the driver.

Also pass the two IRQs as resources and obtain them
in the driver.

Use devm_* accessors and simplify the error path in the
process. Drop memory region request as this is done by
the devm_ioremap* functions.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-ixp4xx/include/mach/ixp4xx-regs.h
drivers/soc/ixp4xx/ixp4xx-qmgr.c