mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
irqchip/exiu: Fix return value check in exiu_init()
In case of error, the function of_iomap() returns NULL pointer not
ERR_PTR().
Replace the IS_ERR() test of the return value with NULL test and return
a proper error code.
Fixes: 706cffc1b9 ("irqchip/exiu: Add support for Socionext Synquacer EXIU controller")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Jason Cooper <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
parent
41cc30412d
commit
0e54705b0e
1 changed files with 2 additions and 2 deletions
|
|
@ -196,8 +196,8 @@ static int __init exiu_init(struct device_node *node,
|
|||
}
|
||||
|
||||
data->base = of_iomap(node, 0);
|
||||
if (IS_ERR(data->base)) {
|
||||
err = PTR_ERR(data->base);
|
||||
if (!data->base) {
|
||||
err = -ENODEV;
|
||||
goto out_free;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue