diff mbox series

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

Message ID 20200316175652.5604-4-krzk@kernel.org (mailing list archive)
State Mainlined, archived
Headers show
Series ARM: exynos: Pull for v5.7 | expand

Commit Message

Krzysztof Kozlowski March 16, 2020, 5:56 p.m. UTC
From: Marek Szyprowski <m.szyprowski@samsung.com>

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

Fixes: 02fb29882d5c ("soc: samsung: chipid: Drop "syscon" compatible requirement")
Cc: <stable@vger.kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/soc/samsung/exynos-chipid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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);