diff mbox series

soc: samsung: chipid: Fix return value on non-Exynos platforms

Message ID 20200207070552.26986-1-m.szyprowski@samsung.com
State New
Headers show
Series soc: samsung: chipid: Fix return value on non-Exynos platforms | expand

Commit Message

Marek Szyprowski Feb. 7, 2020, 7:05 a.m. UTC
Correct the probe return value to -ENODEV on non-Exynos platforms.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 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);