diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2024-04-30 20:46:56 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2024-04-30 23:24:27 +0200 |
commit | aacb99de1099346244d488bdf7df489a44278574 (patch) | |
tree | 7561644b8e522b93bf23b3ecf86b4e3bc57830c8 /drivers/thermal/thermal_debugfs.c | |
parent | Merge tag 'sunxi-clk-fixes-for-6.9-1' of https://git.kernel.org/pub/scm/linux... (diff) | |
download | linux-aacb99de1099346244d488bdf7df489a44278574.tar.xz linux-aacb99de1099346244d488bdf7df489a44278574.zip |
clk: samsung: Revert "clk: Use device_get_match_data()"
device_get_match_data() function should not be used on the device other
than the one matched to the given driver, because it always returns the
match_data of the matched driver. In case of exynos-clkout driver, the
original code matches the OF IDs on the PARENT device, so replacing it
with of_device_get_match_data() broke the driver.
This has been already pointed once in commit 2bc5febd05ab ("clk: samsung:
Revert "clk: samsung: exynos-clkout: Use of_device_get_match_data()"").
To avoid further confusion, add a comment about this special case, which
requires direct of_match_device() call to pass custom IDs array.
This partially reverts commit 409c39ec92a35e3708f5b5798c78eae78512cd71.
Cc: <stable@vger.kernel.org>
Fixes: 409c39ec92a3 ("clk: Use device_get_match_data()")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20240425075628.838497-1-m.szyprowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240430184656.357805-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/thermal/thermal_debugfs.c')
0 files changed, 0 insertions, 0 deletions