Skip to content

Commit cdfe4fc

Browse files
krzkdavem330
authored andcommitted
net: ieee802154: ca8210: drop of_match_ptr for ID table
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 <[email protected]> Acked-by: Stefan Schmidt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 32b7030 commit cdfe4fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ieee802154/ca8210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3180,7 +3180,7 @@ static struct spi_driver ca8210_spi_driver = {
31803180
.driver = {
31813181
.name = DRIVER_NAME,
31823182
.owner = THIS_MODULE,
3183-
.of_match_table = of_match_ptr(ca8210_of_ids),
3183+
.of_match_table = ca8210_of_ids,
31843184
},
31853185
.probe = ca8210_probe,
31863186
.remove = ca8210_remove

0 commit comments

Comments
 (0)