clk: samsung: Revert "clk: samsung: exynos-clkout: Use of_device_get_match_data()"
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 8 Nov 2022 21:37:18 +0000 (22:37 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 15 Nov 2022 09:36:54 +0000 (10:36 +0100)
commit2bc5febd05abe86c3e3d4b4f18dff4bc4316c1be
treeb895241bd9e5db0cfe54b6332b28563829c4b45b
parent4854e8b083d800b421c02d3a8482fbfe27fb33ec
clk: samsung: Revert "clk: samsung: exynos-clkout: Use of_device_get_match_data()"

of_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 code matched the OF IDs on the PARENT device, so replacing it with
of_device_get_match_data() broke the driver.

This reverts commit 777aaf3d1daf793461269b49c063aca1cee06a44.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: 777aaf3d1daf ("clk: samsung: exynos-clkout: Use of_device_get_match_data()")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221108213718.32076-1-m.szyprowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/clk/samsung/clk-exynos-clkout.c