diff mbox series

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

Message ID 20200207070552.26986-1-m.szyprowski@samsung.com (mailing list archive)
State Not Applicable, archived
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(-)

Comments

Krzysztof Kozlowski Feb. 10, 2020, 7:30 p.m. UTC | #1
On Fri, Feb 07, 2020 at 08:05:52AM +0100, Marek Szyprowski wrote:
> 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 +-

Thanks, applied (with Cc-stable and Fixes tags).

Best regards,
Krzysztof
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);