]> git.baikalelectronics.ru Git - kernel.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)
commitcf8545d89dfd975dcffc2a537c0504d562468d4f
tree2cba2fc0875fd114d55f877d5187ea956c8147f2
parentd68641b4e66f85597def2488da1dbfa60a2fe059
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