Message ID | 20210330102110.10881-1-brgl@bgdev.pl |
---|---|
State | New |
Headers | show |
Series | gpio: sim: actually use the OF module table | expand |
On Tue, Mar 30, 2021 at 12:21:10PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bgolaszewski@baylibre.com> > > 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. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> > --- > 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 >
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, };