• Daniel Gomez's avatar
    spi: Micrel eth switch: declare missing of table · 2f23a2a7
    Daniel Gomez authored
    Add missing <of_device_id> table for SPI driver relying on SPI
    device match since compatible is in a DT binding or in a DTS.
    
    Before this patch:
    modinfo drivers/net/phy/spi_ks8995.ko | grep alias
    alias:          spi:ksz8795
    alias:          spi:ksz8864
    alias:          spi:ks8995
    
    After this patch:
    modinfo drivers/net/phy/spi_ks8995.ko | grep alias
    alias:          spi:ksz8795
    alias:          spi:ksz8864
    alias:          spi:ks8995
    alias:          of:N*T*Cmicrel,ksz8795C*
    alias:          of:N*T*Cmicrel,ksz8795
    alias:          of:N*T*Cmicrel,ksz8864C*
    alias:          of:N*T*Cmicrel,ksz8864
    alias:          of:N*T*Cmicrel,ks8995C*
    alias:          of:N*T*Cmicrel,ks8995
    Reported-by: default avatarJavier Martinez Canillas <javier@dowhile0.org>
    Signed-off-by: default avatarDaniel Gomez <dagmcr@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2f23a2a7
spi_ks8995.c 13.4 KB