Skip to content

Commit c7230a4

Browse files
committed
Merge tag 'spi-fix-v5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "One new device ID here, plus an error handling fix - nothing remarkable in either" * tag 'spi-fix-v5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spidev: Add cisco device compatible spi: altera: Fix memory leak on error path
2 parents 5bec248 + 396cf2a commit c7230a4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/spi/spi-altera.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ static int altera_spi_probe(struct platform_device *pdev)
254254
dev_err(&pdev->dev,
255255
"Invalid number of chipselect: %hu\n",
256256
pdata->num_chipselect);
257-
return -EINVAL;
257+
err = -EINVAL;
258+
goto exit;
258259
}
259260

260261
master->num_chipselect = pdata->num_chipselect;

drivers/spi/spidev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ static const struct of_device_id spidev_dt_ids[] = {
682682
{ .compatible = "lwn,bk4" },
683683
{ .compatible = "dh,dhcom-board" },
684684
{ .compatible = "menlo,m53cpld" },
685+
{ .compatible = "cisco,spi-petra" },
685686
{},
686687
};
687688
MODULE_DEVICE_TABLE(of, spidev_dt_ids);

0 commit comments

Comments
 (0)