From: Krzysztof Kozlowski Date: Fri, 10 Mar 2023 20:06:52 +0000 (+0100) Subject: power: reset: qcom-pon: drop of_match_ptr for ID table X-Git-Tag: v6.6.7~2940^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef6d10568ca9ca622a867e5d059982251bbccd6b;p=platform%2Fkernel%2Flinux-starfive.git power: reset: qcom-pon: drop of_match_ptr for ID table The Qualcomm SoC power-on driver is specific to ARCH_QCOM which depends on OF thus the driver is OF-only. It's of_device_id table is built unconditionally, thus of_match_ptr() for ID table does not make sense. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio Reviewed-by: Marijn Suijten Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/reset/qcom-pon.c b/drivers/power/reset/qcom-pon.c index 16bc017..ebdcfb2 100644 --- a/drivers/power/reset/qcom-pon.c +++ b/drivers/power/reset/qcom-pon.c @@ -91,7 +91,7 @@ static struct platform_driver pm8916_pon_driver = { .probe = pm8916_pon_probe, .driver = { .name = "pm8916-pon", - .of_match_table = of_match_ptr(pm8916_pon_id_table), + .of_match_table = pm8916_pon_id_table, }, }; module_platform_driver(pm8916_pon_driver);