diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2020-03-16 20:56:52 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-03-25 16:27:27 +0300 |
commit | c8042d1e5cb3e654b47447229ace3cd092a8fc27 (patch) | |
tree | dd35817ce60dc8f5824cd6b937437a138526267f /drivers/soc | |
parent | 47039b55f8e2002baa7c00f35a7fd11361a8726c (diff) | |
download | linux-c8042d1e5cb3e654b47447229ace3cd092a8fc27.tar.xz |
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>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/samsung/exynos-chipid.c | 2 |
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); |