Skip to contentSkip to conversation

misc: bmp085: add MODULE_DEVICE_TABLE

PATCH New Axel Lin 1 participant 1 message Feb 28, 2011 Char and misc drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 misc: bmp085: add MODULE_DEVICE_TABLE

The device table is required to load modules based on modaliases.

---
 drivers/misc/bmp085.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/misc/bmp085.c +1 -0
index 63ee4c1..b6e1c9a 100644
@@ -449,6 +449,7 @@ static const struct i2c_device_id bmp085_id[] = {
 	{ "bmp085", 0 },
 	{ }
 };
+MODULE_DEVICE_TABLE(i2c, bmp085_id);
 
 static struct i2c_driver bmp085_driver = {
 	.driver = {
Signature · 1 line
1.7.2