diff options
| -rw-r--r-- | drivers/spi/spi-ti-qspi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index e12d962a289f..4e2109d9853d 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
| @@ -532,7 +532,7 @@ static int ti_qspi_probe(struct platform_device *pdev) | |||
| 532 | if (!of_property_read_u32(np, "spi-max-frequency", &max_freq)) | 532 | if (!of_property_read_u32(np, "spi-max-frequency", &max_freq)) |
| 533 | qspi->spi_max_frequency = max_freq; | 533 | qspi->spi_max_frequency = max_freq; |
| 534 | 534 | ||
| 535 | ret = spi_register_master(master); | 535 | ret = devm_spi_register_master(&pdev->dev, master); |
| 536 | if (ret) | 536 | if (ret) |
| 537 | goto free_master; | 537 | goto free_master; |
| 538 | 538 | ||
| @@ -543,22 +543,12 @@ free_master: | |||
| 543 | return ret; | 543 | return ret; |
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | static int ti_qspi_remove(struct platform_device *pdev) | ||
| 547 | { | ||
| 548 | struct ti_qspi *qspi = platform_get_drvdata(pdev); | ||
| 549 | |||
| 550 | spi_unregister_master(qspi->master); | ||
| 551 | |||
| 552 | return 0; | ||
| 553 | } | ||
| 554 | |||
| 555 | static const struct dev_pm_ops ti_qspi_pm_ops = { | 546 | static const struct dev_pm_ops ti_qspi_pm_ops = { |
| 556 | .runtime_resume = ti_qspi_runtime_resume, | 547 | .runtime_resume = ti_qspi_runtime_resume, |
| 557 | }; | 548 | }; |
| 558 | 549 | ||
| 559 | static struct platform_driver ti_qspi_driver = { | 550 | static struct platform_driver ti_qspi_driver = { |
| 560 | .probe = ti_qspi_probe, | 551 | .probe = ti_qspi_probe, |
| 561 | .remove = ti_qspi_remove, | ||
| 562 | .driver = { | 552 | .driver = { |
| 563 | .name = "ti,dra7xxx-qspi", | 553 | .name = "ti,dra7xxx-qspi", |
| 564 | .owner = THIS_MODULE, | 554 | .owner = THIS_MODULE, |
