From: Wei Yongjun <weiyongjun1@xxxxxxxxxx> Add spi_device_id entries to silent following SPI warning: SPI driver leds_cr0014114 has no spi_device_id for crane,cr0014114 Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> --- drivers/leds/leds-cr0014114.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/leds/leds-cr0014114.c b/drivers/leds/leds-cr0014114.c index c87686bd7c18..095455163246 100644 --- a/drivers/leds/leds-cr0014114.c +++ b/drivers/leds/leds-cr0014114.c @@ -281,9 +281,16 @@ static const struct of_device_id cr0014114_dt_ids[] = { MODULE_DEVICE_TABLE(of, cr0014114_dt_ids); +static const struct spi_device_id cr0014114_spi_ids[] = { + { "cr0014114" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, cr0014114_spi_ids); + static struct spi_driver cr0014114_driver = { .probe = cr0014114_probe, .remove = cr0014114_remove, + .id_table = cr0014114_spi_ids, .driver = { .name = KBUILD_MODNAME, .of_match_table = cr0014114_dt_ids, -- 2.34.1