mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
irqchip/qcom: Fix error handling
'devm_ioremap()' returns NULL on error, not an error pointer.
Fixes: f20cc9b00c ("irqchip/qcom: Add IRQ combiner driver")
Signed-off-by: Christophe JAILLET <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
5d4bac9a5f
commit
3900dea4cd
1 changed files with 2 additions and 2 deletions
|
|
@ -202,9 +202,9 @@ static acpi_status get_registers_cb(struct acpi_resource *ares, void *context)
|
|||
}
|
||||
|
||||
vaddr = devm_ioremap(ctx->dev, reg->address, REG_SIZE);
|
||||
if (IS_ERR(vaddr)) {
|
||||
if (!vaddr) {
|
||||
dev_err(ctx->dev, "Can't map register @%pa\n", &paddr);
|
||||
ctx->err = PTR_ERR(vaddr);
|
||||
ctx->err = -ENOMEM;
|
||||
return AE_ERROR;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue