power: reset: qcom-pon: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 10 Mar 2023 20:06:52 +0000 (21:06 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 12 Mar 2023 22:31:53 +0000 (23:31 +0100)
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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/qcom-pon.c

index 16bc017..ebdcfb2 100644 (file)
@@ -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);