Skip to content

Commit 3896c40

Browse files
krzkdavem330
authored andcommitted
net: ieee802154: mcr20a: drop of_match_ptr for ID table
The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/ieee802154/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Stefan Schmidt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3df09be commit 3896c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ieee802154/mcr20a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(spi, mcr20a_device_id);
13521352
static struct spi_driver mcr20a_driver = {
13531353
.id_table = mcr20a_device_id,
13541354
.driver = {
1355-
.of_match_table = of_match_ptr(mcr20a_of_match),
1355+
.of_match_table = mcr20a_of_match,
13561356
.name = "mcr20a",
13571357
},
13581358
.probe = mcr20a_probe,

0 commit comments

Comments
 (0)