Skip to contentSkip to conversation

iio: lidar: add missing MODULE_DEVICE_TABLE for dt

PATCH Applied Matt Ranostay 2 participants 2 messages Sep 23, 2015 – Sep 27, 2015 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: lidar: add missing MODULE_DEVICE_TABLE for dt

The device tree compatible strings weren't properly registered for the pulsedlight-lidar-lite-v2 driver.

---
 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +1 -0
index 185a7ab..961f9f99 100644
@@ -271,6 +271,7 @@ static const struct of_device_id lidar_dt_ids[] = {
 	{ .compatible = "pulsedlight,lidar-lite-v2" },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, lidar_dt_ids);
 
 static struct i2c_driver lidar_driver = {
 	.driver = {
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Matt Ranostay

The device tree compatible strings weren't properly registered for the pulsedlight-lidar-lite-v2 driver.

Applied.

Quoted 17 lines
---
 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +1 -0
index 185a7ab..961f9f99 100644
@@ -271,6 +271,7 @@ static const struct of_device_id lidar_dt_ids[] = {
 	{ .compatible = "pulsedlight,lidar-lite-v2" },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, lidar_dt_ids);
 
 static struct i2c_driver lidar_driver = {
 	.driver = {