diff options
author | Olof Johansson <olof@lixom.net> | 2018-07-14 17:39:55 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-07-14 17:39:55 -0400 |
commit | 7af239f0c984dea5fb367a04c27712c61c43a121 (patch) | |
tree | 181e044b28aafa9c31131a1c287d2024fb108ebc /drivers/memory | |
parent | 20d87a5114e7ab39d92798c680f034f9dcaa71db (diff) | |
parent | 1662dd641f596e5517c7b7a23e4f8ddf36741b5f (diff) |
Merge tag 'tegra-for-4.19-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers
memory: tegra: Changes for v4.19-rc1
This contains a single fix for the initialization order of the various
parts of the Tegra memory controller driver.
* tag 'tegra-for-4.19-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
memory: tegra: Correct driver probe order
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/tegra/mc.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/memory/tegra/mc.c b/drivers/memory/tegra/mc.c index bb93cc53554e..bd25faf6d13d 100644 --- a/drivers/memory/tegra/mc.c +++ b/drivers/memory/tegra/mc.c | |||
@@ -672,13 +672,6 @@ static int tegra_mc_probe(struct platform_device *pdev) | |||
672 | return err; | 672 | return err; |
673 | } | 673 | } |
674 | 674 | ||
675 | err = tegra_mc_reset_setup(mc); | ||
676 | if (err < 0) { | ||
677 | dev_err(&pdev->dev, "failed to register reset controller: %d\n", | ||
678 | err); | ||
679 | return err; | ||
680 | } | ||
681 | |||
682 | mc->irq = platform_get_irq(pdev, 0); | 675 | mc->irq = platform_get_irq(pdev, 0); |
683 | if (mc->irq < 0) { | 676 | if (mc->irq < 0) { |
684 | dev_err(&pdev->dev, "interrupt not specified\n"); | 677 | dev_err(&pdev->dev, "interrupt not specified\n"); |
@@ -697,13 +690,16 @@ static int tegra_mc_probe(struct platform_device *pdev) | |||
697 | return err; | 690 | return err; |
698 | } | 691 | } |
699 | 692 | ||
693 | err = tegra_mc_reset_setup(mc); | ||
694 | if (err < 0) | ||
695 | dev_err(&pdev->dev, "failed to register reset controller: %d\n", | ||
696 | err); | ||
697 | |||
700 | if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU)) { | 698 | if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU)) { |
701 | mc->smmu = tegra_smmu_probe(&pdev->dev, mc->soc->smmu, mc); | 699 | mc->smmu = tegra_smmu_probe(&pdev->dev, mc->soc->smmu, mc); |
702 | if (IS_ERR(mc->smmu)) { | 700 | if (IS_ERR(mc->smmu)) |
703 | dev_err(&pdev->dev, "failed to probe SMMU: %ld\n", | 701 | dev_err(&pdev->dev, "failed to probe SMMU: %ld\n", |
704 | PTR_ERR(mc->smmu)); | 702 | PTR_ERR(mc->smmu)); |
705 | return PTR_ERR(mc->smmu); | ||
706 | } | ||
707 | } | 703 | } |
708 | 704 | ||
709 | return 0; | 705 | return 0; |