From: Axel Lin Date: Mon, 28 Feb 2011 06:32:15 +0000 (+0800) Subject: mfd: Add MODULE_DEVICE_TABLE to mc13xxx-core X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6991ec255af960e1349a21ec2782ea67408b7eb6;p=linux-beck.git 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 Acked-by: Uwe Kleine-König Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 97a3b400ed4f..668634e89e81 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c @@ -803,6 +803,7 @@ static const struct spi_device_id mc13xxx_device_id[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(spi, mc13xxx_device_id); static struct spi_driver mc13xxx_driver = { .id_table = mc13xxx_device_id,