gpio: sim: actually use the OF module table
PATCH 1/1 gpio: sim: actually use the OF module table
From: Bartosz Golaszewski <[email protected]>
We don't assign the of_device_id table to the platform driver resulting in the following build warning:
Quoted 1 line
Quoted 1 line
drivers/gpio/gpio-sim.c:388:34: warning: unused variable 'gpio_sim_of_match' [-Wunused-const-variable]
static const struct of_device_id gpio_sim_of_match[] = {
This fixes it.
Reported-by kernel test robot <[email protected]>
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpio-sim.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-sim.c +1 -0
@@ -394,6 +394,7 @@ MODULE_DEVICE_TABLE(of, gpio_sim_of_match);static struct platform_driver gpio_sim_driver = { .driver = { .name ="gpio-sim" , + .of_match_table = gpio_sim_of_match, }, .probe = gpio_sim_probe, };
Signature · 1 line
2.30.1
Quoted 9 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
We don't assign the
of_device_idtable to the platform driver resulting in the following build warning:Quoted 1 line
Quoted 1 line
drivers/gpio/gpio-sim.c:388:34: warning: unused variable 'gpio_sim_of_match' [-Wunused-const-variable]static const struct
of_device_idgpio_sim_of_match[] = {This fixes it.
Reviewed-by Andy Shevchenko <[email protected]>
Quoted 21 lines
Reported-by kernel test robot <[email protected]>Signed-off-by Bartosz Golaszewski <[email protected]>--- drivers/gpio/gpio-sim.c | 1 + 1 file changed, 1 insertion(+)drivers/gpio/gpio-sim.c +1
-0@@ -394,6 +394,7 @@ MODULE_DEVICE_TABLE(of, gpio_sim_of_match);static struct platform_driver gpio_sim_driver = { .driver = { .name ="gpio-sim" , + .of_match_table = gpio_sim_of_match, }, .probe = gpio_sim_probe, };Signature · 1 line
2.30.1
Signature · 2 lines
With Best Regards, Andy Shevchenko