summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2020-03-16 18:56:52 +0100
committerArnd Bergmann <arnd@arndb.de>2020-03-25 14:27:27 +0100
commitc8042d1e5cb3e654b47447229ace3cd092a8fc27 (patch)
treedd35817ce60dc8f5824cd6b937437a138526267f
parentMerge tag 'tee-amdtee-fix2-for-5.6' of https://git.linaro.org/people/jens.wik... (diff)
downloadlinux-c8042d1e5cb3e654b47447229ace3cd092a8fc27.tar.xz
linux-c8042d1e5cb3e654b47447229ace3cd092a8fc27.zip
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/20200316175652.5604-4-krzk@kernel.org 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> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--drivers/soc/samsung/exynos-chipid.c2
1 files changed, 1 insertions, 1 deletions
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);