net: ieee802154: ca8210: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 11 Mar 2023 17:33:01 +0000 (18:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:11:02 +0000 (08:11 +0000)
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).

  drivers/net/ieee802154/ca8210.c:3174:34: error: ‘ca8210_of_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/ca8210.c

index 0b0c6c0..b5def77 100644 (file)
@@ -3180,7 +3180,7 @@ static struct spi_driver ca8210_spi_driver = {
        .driver = {
                .name =                 DRIVER_NAME,
                .owner =                THIS_MODULE,
-               .of_match_table =       of_match_ptr(ca8210_of_ids),
+               .of_match_table =       ca8210_of_ids,
        },
        .probe  =                       ca8210_probe,
        .remove =                       ca8210_remove