We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff495e commit d24a54eCopy full SHA for d24a54e
drivers/spi/spi-nxp-fspi.c
@@ -1273,7 +1273,9 @@ static int nxp_fspi_probe(struct platform_device *pdev)
1273
if (ret)
1274
return dev_err_probe(dev, ret, "Failed to request irq\n");
1275
1276
- devm_mutex_init(dev, &f->lock);
+ ret = devm_mutex_init(dev, &f->lock);
1277
+ if (ret)
1278
+ return dev_err_probe(dev, ret, "Failed to initialize lock\n");
1279
1280
ctlr->bus_num = -1;
1281
ctlr->num_chipselect = NXP_FSPI_MAX_CHIPSELECT;
0 commit comments