Skip to content

Commit 030d282

Browse files
digetxthierryreding
authored andcommitted
memory: tegra30-emc: Fix panic on suspend
Trying to suspend driver results in a crash if timings aren't available in device-tree. Reported-by: Jon Hunter <[email protected]> Fixes: e34212c ("memory: tegra: Introduce Tegra30 EMC driver") Signed-off-by: Dmitry Osipenko <[email protected]> Acked-by: Jon Hunter <[email protected]> Tested-by: Jon Hunter <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 141bef4 commit 030d282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/tegra/tegra30-emc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ static int tegra_emc_probe(struct platform_device *pdev)
10931093
if (of_get_child_count(pdev->dev.of_node) == 0) {
10941094
dev_info(&pdev->dev,
10951095
"device-tree node doesn't have memory timings\n");
1096-
return 0;
1096+
return -ENODEV;
10971097
}
10981098

10991099
np = of_parse_phandle(pdev->dev.of_node, "nvidia,memory-controller", 0);

0 commit comments

Comments
 (0)