]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: stmmac: qcom: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 10 Mar 2023 21:46:28 +0000 (22:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:02:44 +0000 (08:02 +0000)
The driver is specific to ARCH_QCOM which depends on OF thus the driver
is OF-only.  Its 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: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

index 732774645c1a680b0365e7df02fbe8bea4a6c695..32763566c2149d89f736538085a0049cdf2d55e0 100644 (file)
@@ -606,7 +606,7 @@ static struct platform_driver qcom_ethqos_driver = {
        .driver = {
                .name           = "qcom-ethqos",
                .pm             = &stmmac_pltfr_pm_ops,
-               .of_match_table = of_match_ptr(qcom_ethqos_match),
+               .of_match_table = qcom_ethqos_match,
        },
 };
 module_platform_driver(qcom_ethqos_driver);