mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
irqchip: mtk-sysirq: Make mtk_sysirq_of_init return error if ioremap fails
PTR_ERR(NULL) returns 0 so current code returns 0 if ioremap fails, fix it. Signed-off-by: Axel Lin <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Cc: Yingjoe Chen <[email protected]> Cc: [email protected] <[email protected]> Cc: Jason Cooper <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
a6c761e44c
commit
e1a96fb861
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ static int __init mtk_sysirq_of_init(struct device_node *node,
|
|||
chip_data->intpol_base = ioremap(res.start, size);
|
||||
if (!chip_data->intpol_base) {
|
||||
pr_err("mtk_sysirq: unable to map sysirq register\n");
|
||||
ret = PTR_ERR(chip_data->intpol_base);
|
||||
ret = -ENXIO;
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue