]> git.baikalelectronics.ru Git - kernel.git/commit
net: vertexcom: mse102x: Silence no spi_device_id warnings
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 22 Sep 2022 06:57:17 +0000 (06:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 26 Sep 2022 19:46:16 +0000 (12:46 -0700)
commite651b9e6424668c9628edd24e48a85f825bf03dd
treed1f28f2d0acf70e65d6295c00991ba2270c65f97
parent7ccd4f86342a9871e60b026094f0d76a3ba81164
net: vertexcom: mse102x: Silence no spi_device_id warnings

SPI devices use the spi_device_id for module autoloading even on
systems using device tree, after commit 8ab40eefa6b7 ("spi: Check
we have a spi_device_id for each DT compatible"), kernel warns as
follows since the spi_device_id is missing:

SPI driver mse102x has no spi_device_id for vertexcom,mse1021
SPI driver mse102x has no spi_device_id for vertexcom,mse1022

Add spi_device_id entries to silence the warnings, and ensure driver
module autoloading works.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20220922065717.1448498-1-weiyongjun@huaweicloud.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/vertexcom/mse102x.c