Subject: [PATCH PULL 3/3] soc: samsung: chipid: Fix return value on non-Exynos platforms

From: Krzysztof Kozlowski <[email-masked]>
Date: Mon, 16 Mar 2020 18:56:52 +0100

From: Marek Szyprowski <[email-masked]>

Correct the probe return value to -ENODEV on non-Exynos platforms.

Fixes: 02fb29882d5c ("soc: samsung: chipid: Drop "syscon" compatible requirement")
Cc: <[email-masked]>
Signed-off-by: Marek Szyprowski <[email-masked]>
Signed-off-by: Krzysztof Kozlowski <[email-masked]>
---
 drivers/soc/samsung/exynos-chipid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c
index 2dad4961a80b..8d4d05086906 100644
--- a/drivers/soc/samsung/exynos-chipid.c
+++ b/drivers/soc/samsung/exynos-chipid.c
@@ -59,7 +59,7 @@ static int __init exynos_chipid_early_init(void)
 	syscon = of_find_compatible_node(NULL, NULL,
 					 "samsung,exynos4210-chipid");
 	if (!syscon)
-		return ENODEV;
+		return -ENODEV;
 
 	regmap = device_node_to_regmap(syscon);
 	of_node_put(syscon);
-- 
2.17.1

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel