Skip to content

Commit 32b7030

Browse files
krzkdavem330
authored andcommitted
net: ieee802154: at86rf230: 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/at86rf230.c:1644:34: error: ‘at86rf230_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 3896c40 commit 32b7030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ieee802154/at86rf230.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ MODULE_DEVICE_TABLE(spi, at86rf230_device_id);
16621662
static struct spi_driver at86rf230_driver = {
16631663
.id_table = at86rf230_device_id,
16641664
.driver = {
1665-
.of_match_table = of_match_ptr(at86rf230_of_match),
1665+
.of_match_table = at86rf230_of_match,
16661666
.name = "at86rf230",
16671667
},
16681668
.probe = at86rf230_probe,

0 commit comments

Comments
 (0)