From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> We don't assign the of_device_id table to the platform driver resulting in the following build warning: >> 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 <lkp@xxxxxxxxx> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx> --- drivers/gpio/gpio-sim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.c index a1807f518837..ea17289a869c 100644 --- a/drivers/gpio/gpio-sim.c +++ b/drivers/gpio/gpio-sim.c @@ -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, }; -- 2.30.1