projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WIP: merge_config
[platform/kernel/linux-starfive.git]
/
drivers
/
mailbox
/
arm_mhuv2.c
diff --git
a/drivers/mailbox/arm_mhuv2.c
b/drivers/mailbox/arm_mhuv2.c
index
a47aef8
..
c6d4957
100644
(file)
--- a/
drivers/mailbox/arm_mhuv2.c
+++ b/
drivers/mailbox/arm_mhuv2.c
@@
-1062,8
+1062,8
@@
static int mhuv2_probe(struct amba_device *adev, const struct amba_id *id)
int ret = -EINVAL;
reg = devm_of_iomap(dev, dev->of_node, 0, NULL);
- if (
!reg
)
- return
-ENOMEM
;
+ if (
IS_ERR(reg)
)
+ return
PTR_ERR(reg)
;
mhu = devm_kzalloc(dev, sizeof(*mhu), GFP_KERNEL);
if (!mhu)