]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Micrel eth switch: declare missing of table
authorDaniel Gomez <dagmcr@gmail.com>
Mon, 22 Apr 2019 19:08:03 +0000 (21:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 17:44:44 +0000 (10:44 -0700)
commitf73574ba1c112125fe51759323ebb7a07599bc1d
treec97c2d89c43f1163831e145cfa963e11c1096cbf
parent7fc00e5c2521d278820d3432a518a0dfa29884a6
spi: Micrel eth switch: declare missing of table

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: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Daniel Gomez <dagmcr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/spi_ks8995.c