]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpio: sim: actually use the OF module table
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 30 Mar 2021 10:21:10 +0000 (12:21 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 31 Mar 2021 07:32:21 +0000 (09:32 +0200)
commit9195faa7e5a6bd1c1feaf8d24451d5f94f040884
tree58bfbba52facb169d5414ff0d86949d41d30e640
parent9d940ab7264574be59ce3a953dc33de9250429eb
gpio: sim: actually use the OF module table

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.

Fixes: 3f0279eb9e37 ("gpio: sim: new testing module")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-sim.c