Skip to content

Commit c8042d1

Browse files
mszyprowarndb
authored andcommitted
soc: samsung: chipid: Fix return value on non-Exynos platforms
Correct the probe return value to -ENODEV on non-Exynos platforms. Link: https://lore.kernel.org/r/[email protected] Fixes: 02fb298 ("soc: samsung: chipid: Drop "syscon" compatible requirement") Cc: <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 47039b5 commit c8042d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/samsung/exynos-chipid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int __init exynos_chipid_early_init(void)
5959
syscon = of_find_compatible_node(NULL, NULL,
6060
"samsung,exynos4210-chipid");
6161
if (!syscon)
62-
return ENODEV;
62+
return -ENODEV;
6363

6464
regmap = device_node_to_regmap(syscon);
6565
of_node_put(syscon);

0 commit comments

Comments
 (0)