mmc: mmc_spi: Export OF module alias information
authorJavier Martinez Canillas <[email protected]>
Wed, 16 Sep 2015 09:12:07 +0000 (11:12 +0200)
committerUlf Hansson <[email protected]>
Mon, 26 Oct 2015 14:59:56 +0000 (15:59 +0100)
Drivers needs to export the OF id table and this be built into
the module or udev won't have the necessary information to autoload
the driver module when the device is registered via OF.

Signed-off-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/mmc_spi.c

index ae19d83bb9de0d966bb095f73c2f8b900578659a..8ee11f4120fcae295756118c492b9cdef150eadf 100644 (file)
@@ -1511,6 +1511,7 @@ static const struct of_device_id mmc_spi_of_match_table[] = {
        { .compatible = "mmc-spi-slot", },
        {},
 };
+MODULE_DEVICE_TABLE(of, mmc_spi_of_match_table);
 
 static struct spi_driver mmc_spi_driver = {
        .driver = {