Skip to content

Commit 3df09be

Browse files
krzkdavem330
authored andcommitted
net: ieee802154: adf7242: 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/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b0b7d1b commit 3df09be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ieee802154/adf7242.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id);
13361336
static struct spi_driver adf7242_driver = {
13371337
.id_table = adf7242_device_id,
13381338
.driver = {
1339-
.of_match_table = of_match_ptr(adf7242_of_match),
1339+
.of_match_table = adf7242_of_match,
13401340
.name = "adf7242",
13411341
.owner = THIS_MODULE,
13421342
},

0 commit comments

Comments
 (0)