Commit e474b3a1 authored by Thierry Reding's avatar Thierry Reding Committed by Krzysztof Kozlowski

memory: tegra: Make IRQ support opitonal

Make IRQ support optional to help unify the Tegra186 memory controller
driver with this one.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210602163302.120041-9-thierry.reding@gmail.comSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent 1079a66b
...@@ -750,6 +750,7 @@ static int tegra_mc_probe(struct platform_device *pdev) ...@@ -750,6 +750,7 @@ static int tegra_mc_probe(struct platform_device *pdev)
return err; return err;
} }
if (mc->soc->ops && mc->soc->ops->handle_irq) {
mc->irq = platform_get_irq(pdev, 0); mc->irq = platform_get_irq(pdev, 0);
if (mc->irq < 0) if (mc->irq < 0)
return mc->irq; return mc->irq;
...@@ -765,6 +766,7 @@ static int tegra_mc_probe(struct platform_device *pdev) ...@@ -765,6 +766,7 @@ static int tegra_mc_probe(struct platform_device *pdev)
err); err);
return err; return err;
} }
}
err = tegra_mc_reset_setup(mc); err = tegra_mc_reset_setup(mc);
if (err < 0) if (err < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment