Merge tag 'tegra-for-5.5-memory-fixes' of git://git.kernel.org/pub/scm/linux/kernel...
authorOlof Johansson <olof@lixom.net>
Fri, 6 Dec 2019 16:28:49 +0000 (08:28 -0800)
committerOlof Johansson <olof@lixom.net>
Fri, 6 Dec 2019 16:28:51 +0000 (08:28 -0800)
memory: tegra: Fixes for v5.5-rc1

This contains a fix for a kernel panic that can occur on suspend if EMC
timings are not available in device tree.

* tag 'tegra-for-5.5-memory-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  memory: tegra30-emc: Fix panic on suspend

Link: https://lore.kernel.org/r/20191204130753.3614278-1-thierry.reding@gmail.com
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/memory/tegra/tegra30-emc.c

index 6929980..0b6a5e4 100644 (file)
@@ -1093,7 +1093,7 @@ static int tegra_emc_probe(struct platform_device *pdev)
        if (of_get_child_count(pdev->dev.of_node) == 0) {
                dev_info(&pdev->dev,
                         "device-tree node doesn't have memory timings\n");
-               return 0;
+               return -ENODEV;
        }
 
        np = of_parse_phandle(pdev->dev.of_node, "nvidia,memory-controller", 0);