]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Input: max8997_haptic - fix module alias
authorJavier Martinez Canillas <javier@osg.samsung.com>
Sat, 29 Aug 2015 00:30:46 +0000 (17:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 29 Aug 2015 00:46:25 +0000 (17:46 -0700)
The driver is a platform driver and not a I2C driver so its modalias
should be exported with MODULE_DEVICE_TABLE(platform,...) instead of
MODULE_DEVICE_TABLE(i2c,...).

Also, remove the unnecessary MODULE_ALIAS("platform:max8997-haptic")
now that the correct module alias is created.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/max8997_haptic.c

index d0f687281339b06d13122627406a3758c79d951f..a806ba3818f7267dd2036dd870c4f60ca28dc0d5 100644 (file)
@@ -394,7 +394,7 @@ static const struct platform_device_id max8997_haptic_id[] = {
        { "max8997-haptic", 0 },
        { },
 };
-MODULE_DEVICE_TABLE(i2c, max8997_haptic_id);
+MODULE_DEVICE_TABLE(platform, max8997_haptic_id);
 
 static struct platform_driver max8997_haptic_driver = {
        .driver = {
@@ -407,7 +407,6 @@ static struct platform_driver max8997_haptic_driver = {
 };
 module_platform_driver(max8997_haptic_driver);
 
-MODULE_ALIAS("platform:max8997-haptic");
 MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>");
 MODULE_DESCRIPTION("max8997_haptic driver");
 MODULE_LICENSE("GPL");