[patch 07/29] drivers/misc/bmp085.c: add MODULE_DEVICE_TABLE

From: Greg KH
Date: Thu Mar 10 2011 - 19:02:41 EST


2.6.37-stable review patch. If anyone has any objections, please let us know.

------------------

From: Axel Lin <axel.lin@xxxxxxxxx>

commit 97e419a082461f8a3a0818834eb88ad41219a1da upstream.

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

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
Cc: Shubhrajyoti D <shubhrajyoti@xxxxxx>
Cc: Christoph Mair <christoph.mair@xxxxxxxxx>
Cc: Jonathan Cameron <jic23@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
drivers/misc/bmp085.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/misc/bmp085.c
+++ b/drivers/misc/bmp085.c
@@ -449,6 +449,7 @@ static const struct i2c_device_id bmp085
{ "bmp085", 0 },
{ }
};
+MODULE_DEVICE_TABLE(i2c, bmp085_id);

static struct i2c_driver bmp085_driver = {
.driver = {


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/