]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
spi: bcm63xx-hsspi: Export OF device ID table as module aliases
authorAndres Galacho <andresgalacho@gmail.com>
Mon, 1 May 2017 20:13:38 +0000 (16:13 -0400)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 10:01:38 +0000 (19:01 +0900)
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>
drivers/spi/spi-bcm63xx-hsspi.c

index 5514cd02e93a565d49b4429d6f4e35eb39b15991..4da2d4a524ca48075d7220737303274d559f064b 100644 (file)
@@ -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 = {