|
@@ -1635,8 +1635,10 @@ static int cdns_i3c_master_probe(struct platform_device *pdev)
|
|
|
master->ibi.slots = devm_kcalloc(&pdev->dev, master->ibi.num_slots,
|
|
|
sizeof(*master->ibi.slots),
|
|
|
GFP_KERNEL);
|
|
|
- if (!master->ibi.slots)
|
|
|
+ if (!master->ibi.slots) {
|
|
|
+ ret = -ENOMEM;
|
|
|
goto err_disable_sysclk;
|
|
|
+ }
|
|
|
|
|
|
writel(IBIR_THR(1), master->regs + CMD_IBI_THR_CTRL);
|
|
|
writel(MST_INT_IBIR_THR, master->regs + MST_IER);
|