Skip to content

Commit b0b7d1b

Browse files
krzkdavem330
authored andcommitted
net: phy: ks8995: 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/phy/spi_ks8995.c:156:34: error: ‘ks8895_spi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0f17b42 commit b0b7d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/spi_ks8995.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ static void ks8995_remove(struct spi_device *spi)
491491
static struct spi_driver ks8995_driver = {
492492
.driver = {
493493
.name = "spi-ks8995",
494-
.of_match_table = of_match_ptr(ks8895_spi_of_match),
494+
.of_match_table = ks8895_spi_of_match,
495495
},
496496
.probe = ks8995_probe,
497497
.remove = ks8995_remove,

0 commit comments

Comments
 (0)