Re: [PATCH 1/3] leds: cr0014114: silent no spi_device_id warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Oleh Kravchenko <oleg@xxxxxxxxxx>

05.09.22 18:26, Wei Yongjun пише:
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,



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux