mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] misc: bmp085: add MODULE_DEVICE_TABLE
@ 2011-02-28  6:15 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2011-02-28  6:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Christoph Mair, Shubhrajyoti D, Jonathan Cameron, Andrew Morton

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/misc/bmp085.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/misc/bmp085.c b/drivers/misc/bmp085.c
index 63ee4c1..b6e1c9a 100644
--- a/drivers/misc/bmp085.c
+++ b/drivers/misc/bmp085.c
@@ -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 = {
-- 
1.7.2




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-28  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-28  6:15 [PATCH] misc: bmp085: add MODULE_DEVICE_TABLE Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®