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

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.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
parent 1079a66b
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -750,6 +750,7 @@ static int tegra_mc_probe(struct platform_device *pdev)
			return err;
	}

	if (mc->soc->ops && mc->soc->ops->handle_irq) {
		mc->irq = platform_get_irq(pdev, 0);
		if (mc->irq < 0)
			return mc->irq;
@@ -765,6 +766,7 @@ static int tegra_mc_probe(struct platform_device *pdev)
				err);
			return err;
		}
	}

	err = tegra_mc_reset_setup(mc);
	if (err < 0)