This commit is contained in:
Mark Brown
2019-10-08 19:12:28 +01:00
7 changed files with 45 additions and 14 deletions

View File

@@ -368,8 +368,10 @@ static int spi_gpio_probe(struct platform_device *pdev)
return -ENOMEM;
status = devm_add_action_or_reset(&pdev->dev, spi_gpio_put, master);
if (status)
if (status) {
spi_master_put(master);
return status;
}
if (pdev->dev.of_node)
status = spi_gpio_probe_dt(pdev, master);