Commit dcb31e8d authored by Andrew Davis's avatar Andrew Davis Committed by Wolfram Sang

i2c: davinci: Use platform table macro over module_alias

Generates the same platform module alias. More standard usage.
Signed-off-by: default avatarAndrew Davis <afd@ti.com>
Reviewed-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
[wsa: rebased to i2c/for-mergewindow]
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 9e1a1ee9
...@@ -935,12 +935,16 @@ static const struct dev_pm_ops davinci_i2c_pm = { ...@@ -935,12 +935,16 @@ static const struct dev_pm_ops davinci_i2c_pm = {
#define davinci_i2c_pm_ops NULL #define davinci_i2c_pm_ops NULL
#endif #endif
/* work with hotplug and coldplug */ static const struct platform_device_id davinci_i2c_driver_ids[] = {
MODULE_ALIAS("platform:i2c_davinci"); { .name = "i2c_davinci", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(platform, davinci_i2c_driver_ids);
static struct platform_driver davinci_i2c_driver = { static struct platform_driver davinci_i2c_driver = {
.probe = davinci_i2c_probe, .probe = davinci_i2c_probe,
.remove_new = davinci_i2c_remove, .remove_new = davinci_i2c_remove,
.id_table = davinci_i2c_driver_ids,
.driver = { .driver = {
.name = "i2c_davinci", .name = "i2c_davinci",
.pm = davinci_i2c_pm_ops, .pm = davinci_i2c_pm_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment