Commit 6d2ad82f authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: da7280 - protect OF match table with CONFIG_OF

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

Fixes: cd3f6098 ("Input: new da7280 haptic driver")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Acked-by: default avatarRoy Im <roy.im.opensource@diasemi.com>
Link: https://lore.kernel.org/r/X9xRLVPt9eBi0CT6@google.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent fafd320a
......@@ -1300,11 +1300,13 @@ static int __maybe_unused da7280_resume(struct device *dev)
return retval;
}
#ifdef CONFIG_OF
static const struct of_device_id da7280_of_match[] = {
{ .compatible = "dlg,da7280", },
{ }
};
MODULE_DEVICE_TABLE(of, da7280_of_match);
#endif
static const struct i2c_device_id da7280_i2c_id[] = {
{ "da7280", },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment