Skip to content

Commit f055feb

Browse files
Dan CarpenterJassi Brar
authored andcommitted
mailbox: mpfs: fix copy and paste bug in probe
This code accidentally checks ->ctrl_base instead of ->mbox_base so the error handling can never be triggered. Fixes: a4123ff ("mailbox: mpfs: support new, syscon based, devicetree configuration") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent d0f98e1 commit f055feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mailbox/mailbox-mpfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static inline int mpfs_mbox_syscon_probe(struct mpfs_mbox *mbox, struct platform
251251
return PTR_ERR(mbox->sysreg_scb);
252252

253253
mbox->mbox_base = devm_platform_ioremap_resource(pdev, 0);
254-
if (IS_ERR(mbox->ctrl_base))
254+
if (IS_ERR(mbox->mbox_base))
255255
return PTR_ERR(mbox->mbox_base);
256256

257257
return 0;

0 commit comments

Comments
 (0)