summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorAndres Galacho <andresgalacho@gmail.com>2017-05-01 16:13:38 -0400
committerMark Brown <broonie@kernel.org>2017-05-14 19:01:38 +0900
commit0b85a84217903e6d24342cc50bc5a685f8355711 (patch)
tree658218e3a2c0ff1f39e90a1b02dad23b579cda6f /drivers/spi
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-0b85a84217903e6d24342cc50bc5a685f8355711.tar.gz
linux-0b85a84217903e6d24342cc50bc5a685f8355711.tar.bz2
linux-0b85a84217903e6d24342cc50bc5a685f8355711.zip
spi: bcm63xx-hsspi: Export OF device ID table as module aliases
The device table is required to load modules based on modaliases. After adding MODULE_DEVICE_TABLE, below entries for example will be added to module.alias: alias: of:N*T*Cbrcm,bcm6328-hsspiC* alias: of:N*T*Cbrcm,bcm6328-hsspi Signed-off-by: Andres Galacho <andresgalacho@gmail.com> Acked-by: Jonas Gorski <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-bcm63xx-hsspi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c
index 5514cd02e93a..4da2d4a524ca 100644
--- a/drivers/spi/spi-bcm63xx-hsspi.c
+++ b/drivers/spi/spi-bcm63xx-hsspi.c
@@ -484,6 +484,7 @@ static const struct of_device_id bcm63xx_hsspi_of_match[] = {
{ .compatible = "brcm,bcm6328-hsspi", },
{ },
};
+MODULE_DEVICE_TABLE(of, bcm63xx_hsspi_of_match);
static struct platform_driver bcm63xx_hsspi_driver = {
.driver = {