diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-07 07:02:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-07 07:02:26 -0400 |
commit | dabefd56c6ee883bae0bdce4d5396c3f21286ab8 (patch) | |
tree | 2f629a4cfa71276b4afe947232f934f9b0887e7d /drivers/spi/spi-ti-qspi.c | |
parent | 3b3a80019ff194e86e740ec2f013a8915efd1ccf (diff) | |
parent | 2fe7e4add3e53df7c1b97e32076f8390dd81c6b3 (diff) |
Merge remote-tracking branch 'spi/topic/devm' into spi-qspi
Conflicts:
drivers/spi/spi-ti-qspi.c
Diffstat (limited to 'drivers/spi/spi-ti-qspi.c')
-rw-r--r-- | drivers/spi/spi-ti-qspi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index a61aeb9bb823..0b71270fbf67 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
@@ -504,7 +504,7 @@ static int ti_qspi_probe(struct platform_device *pdev) | |||
504 | if (!of_property_read_u32(np, "spi-max-frequency", &max_freq)) | 504 | if (!of_property_read_u32(np, "spi-max-frequency", &max_freq)) |
505 | qspi->spi_max_frequency = max_freq; | 505 | qspi->spi_max_frequency = max_freq; |
506 | 506 | ||
507 | ret = spi_register_master(master); | 507 | ret = devm_spi_register_master(&pdev->dev, master); |
508 | if (ret) | 508 | if (ret) |
509 | goto free_master; | 509 | goto free_master; |
510 | 510 | ||
@@ -520,7 +520,6 @@ static int ti_qspi_remove(struct platform_device *pdev) | |||
520 | struct ti_qspi *qspi = platform_get_drvdata(pdev); | 520 | struct ti_qspi *qspi = platform_get_drvdata(pdev); |
521 | 521 | ||
522 | ti_qspi_write(qspi, QSPI_WC_INT_DISABLE, QSPI_INTR_ENABLE_CLEAR_REG); | 522 | ti_qspi_write(qspi, QSPI_WC_INT_DISABLE, QSPI_INTR_ENABLE_CLEAR_REG); |
523 | spi_unregister_master(qspi->master); | ||
524 | 523 | ||
525 | return 0; | 524 | return 0; |
526 | } | 525 | } |
@@ -531,7 +530,7 @@ static const struct dev_pm_ops ti_qspi_pm_ops = { | |||
531 | 530 | ||
532 | static struct platform_driver ti_qspi_driver = { | 531 | static struct platform_driver ti_qspi_driver = { |
533 | .probe = ti_qspi_probe, | 532 | .probe = ti_qspi_probe, |
534 | .remove = ti_qspi_remove, | 533 | .remove = ti_qspi_remove, |
535 | .driver = { | 534 | .driver = { |
536 | .name = "ti,dra7xxx-qspi", | 535 | .name = "ti,dra7xxx-qspi", |
537 | .owner = THIS_MODULE, | 536 | .owner = THIS_MODULE, |