]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
memory: tegra20-emc: Drop redundant platform_get_irq() error printk
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 4 Jan 2025 14:14:30 +0000 (15:14 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 3 Feb 2025 11:52:07 +0000 (12:52 +0100)
platform_get_irq() already prints error message, so duplicating it is
redundant.  The message about "need of updating DT" makes no sense,
because this code was there since beginning.

Link: https://lore.kernel.org/r/20250104141430.115031-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra20-emc.c

index 9b7d30a21a5bd016cfa9539100d334227b2ad982..44ac55feacd3eef0bd095271bd3dceec60c34bb7 100644 (file)
@@ -1191,10 +1191,8 @@ static int tegra_emc_probe(struct platform_device *pdev)
        int irq, err;
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(&pdev->dev, "please update your device tree\n");
+       if (irq < 0)
                return irq;
-       }
 
        emc = devm_kzalloc(&pdev->dev, sizeof(*emc), GFP_KERNEL);
        if (!emc)