mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
tsnep: Fix unused warning for 'tsnep_of_match'
Kernel test robot found the following warning: drivers/net/ethernet/engleder/tsnep_main.c:1254:34: warning: 'tsnep_of_match' defined but not used [-Wunused-const-variable=] of_match_ptr() compiles into NULL if CONFIG_OF is disabled. tsnep_of_match exists always so use of of_match_ptr() is useless. Fix warning by dropping of_match_ptr(). Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f574f7f839
commit
73afd7816c
1 changed files with 1 additions and 1 deletions
|
@ -1282,7 +1282,7 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
|
|||
static struct platform_driver tsnep_driver = {
|
||||
.driver = {
|
||||
.name = TSNEP,
|
||||
.of_match_table = of_match_ptr(tsnep_of_match),
|
||||
.of_match_table = tsnep_of_match,
|
||||
},
|
||||
.probe = tsnep_probe,
|
||||
.remove = tsnep_remove,
|
||||
|
|
Loading…
Reference in a new issue