Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: da7280 - protect OF match table with CONFIG_OF

The OF match table is only used when OF is enabled.

Fixes: cd3f609823a5 ("Input: new da7280 haptic driver")
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Roy Im <roy.im.opensource@diasemi.com>
Link: https://lore.kernel.org/r/X9xRLVPt9eBi0CT6@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+2
+2
drivers/input/misc/da7280.c
··· 1300 1300 return retval; 1301 1301 } 1302 1302 1303 + #ifdef CONFIG_OF 1303 1304 static const struct of_device_id da7280_of_match[] = { 1304 1305 { .compatible = "dlg,da7280", }, 1305 1306 { } 1306 1307 }; 1307 1308 MODULE_DEVICE_TABLE(of, da7280_of_match); 1309 + #endif 1308 1310 1309 1311 static const struct i2c_device_id da7280_i2c_id[] = { 1310 1312 { "da7280", },