diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-08-28 20:30:46 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-08-28 20:46:25 -0400 |
commit | d6f5aef298b5e5bd12e5d3ef111a4d0fc727ca70 (patch) | |
tree | b389213037069ddaad64eb2b8f54ac8f7a7f7b93 | |
parent | 742f452b9b60c228a33e8d35fd2c74cd15bdaa29 (diff) |
Input: max8997_haptic - fix module alias
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>
-rw-r--r-- | drivers/input/misc/max8997_haptic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/misc/max8997_haptic.c b/drivers/input/misc/max8997_haptic.c index d0f687281339..a806ba3818f7 100644 --- a/drivers/input/misc/max8997_haptic.c +++ b/drivers/input/misc/max8997_haptic.c | |||
@@ -394,7 +394,7 @@ static const struct platform_device_id max8997_haptic_id[] = { | |||
394 | { "max8997-haptic", 0 }, | 394 | { "max8997-haptic", 0 }, |
395 | { }, | 395 | { }, |
396 | }; | 396 | }; |
397 | MODULE_DEVICE_TABLE(i2c, max8997_haptic_id); | 397 | MODULE_DEVICE_TABLE(platform, max8997_haptic_id); |
398 | 398 | ||
399 | static struct platform_driver max8997_haptic_driver = { | 399 | static struct platform_driver max8997_haptic_driver = { |
400 | .driver = { | 400 | .driver = { |
@@ -407,7 +407,6 @@ static struct platform_driver max8997_haptic_driver = { | |||
407 | }; | 407 | }; |
408 | module_platform_driver(max8997_haptic_driver); | 408 | module_platform_driver(max8997_haptic_driver); |
409 | 409 | ||
410 | MODULE_ALIAS("platform:max8997-haptic"); | ||
411 | MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); | 410 | MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); |
412 | MODULE_DESCRIPTION("max8997_haptic driver"); | 411 | MODULE_DESCRIPTION("max8997_haptic driver"); |
413 | MODULE_LICENSE("GPL"); | 412 | MODULE_LICENSE("GPL"); |