w1: ds2482: Add i2c module alias name
authorLudek Hlavacek <ludek_h@seznam.cz>
Tue, 26 May 2015 22:37:59 +0000 (00:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jun 2015 01:29:50 +0000 (10:29 +0900)
Add i2c alias to enable autoloading of the module for device specified
in device-tree.

Signed-off-by: Ludek Hlavacek <ludek_h@seznam.cz>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/ds2482.c

index e76a9b3..a674409 100644 (file)
@@ -93,6 +93,7 @@ static const struct i2c_device_id ds2482_id[] = {
        { "ds2482", 0 },
        { }
 };
+MODULE_DEVICE_TABLE(i2c, ds2482_id);
 
 static struct i2c_driver ds2482_driver = {
        .driver = {