Skip to content

Commit 6991ec2

Browse files
AxelLinSamuel Ortiz
authored andcommitted
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: Axel Lin <axel.lin@gmail.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 1310e6d commit 6991ec2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/mfd/mc13xxx-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ static const struct spi_device_id mc13xxx_device_id[] = {
803803
/* sentinel */
804804
}
805805
};
806+
MODULE_DEVICE_TABLE(spi, mc13xxx_device_id);
806807

807808
static struct spi_driver mc13xxx_driver = {
808809
.id_table = mc13xxx_device_id,

0 commit comments

Comments
 (0)