]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: samsung: exynos-chipid: avoid soc_device_to_device()
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sun, 19 Sep 2021 09:31:12 +0000 (11:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:26 +0000 (07:44 +0200)
commit75dd8356b6816ec1e6ce76f36d18eeb664be50a1
tree070d9c4947cf9d6ab2267b1fc6387d2cd8966ebe
parentf54829389febf0999cd443fdc21b7fb960b6986f
soc: samsung: exynos-chipid: avoid soc_device_to_device()

[ Upstream commit d1141886c8d72ad77920e6e4b617d366e6e3ee8a ]

soc_device_to_device() seems to be discouraged [1] so remove it in favor
of printing info message with platform device.  This will only change
the prefix in the info message from "soc soc0: " to "exynos-chipid
10000000.chipid:".

[1] https://lore.kernel.org/lkml/20191111052741.GB3176397@kroah.com/

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Sylwester Nawrocki <snawrocki@kernel.org>
Tested-by: Sylwester Nawrocki <snawrocki@kernel.org>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Link: https://lore.kernel.org/r/20210919093114.35987-2-krzysztof.kozlowski@canonical.com
Stable-dep-of: c8222ef6cf29 ("soc: samsung: exynos-chipid: Add NULL pointer check in exynos_chipid_probe()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/samsung/exynos-chipid.c