mfd: Add MODULE_DEVICE_TABLE to mc13xxx-core
authorAxel Lin <axel.lin@gmail.com>
Mon, 28 Feb 2011 06:32:15 +0000 (14:32 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:41:59 +0000 (10:41 +0100)
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>
drivers/mfd/mc13xxx-core.c

index 97a3b40..668634e 100644 (file)
@@ -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,