提交 6991ec25 编写于 作者: A Axel Lin 提交者: Samuel Ortiz

mfd: Add MODULE_DEVICE_TABLE to mc13xxx-core

The device table is required to load modules based on modaliases.
After adding the MODULE_DEVICE_TABLE, below entries will be added to
modules.alias:
alias spi:mc13892 mc13xxx_core
alias spi:mc13783 mc13xxx_core
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 1310e6d6
...@@ -803,6 +803,7 @@ static const struct spi_device_id mc13xxx_device_id[] = { ...@@ -803,6 +803,7 @@ static const struct spi_device_id mc13xxx_device_id[] = {
/* sentinel */ /* sentinel */
} }
}; };
MODULE_DEVICE_TABLE(spi, mc13xxx_device_id);
static struct spi_driver mc13xxx_driver = { static struct spi_driver mc13xxx_driver = {
.id_table = mc13xxx_device_id, .id_table = mc13xxx_device_id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册