From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E489BC54EE9 for ; Thu, 22 Sep 2022 13:55:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 051AB10E36B; Thu, 22 Sep 2022 13:55:01 +0000 (UTC) Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id ECFFA10E36B for ; Thu, 22 Sep 2022 13:54:55 +0000 (UTC) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4MYGv91MXDzKPWl for ; Thu, 22 Sep 2022 21:52:53 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.102.38]) by APP2 (Coremail) with SMTP id Syh0CgC3VW8qaSxjR3npBA--.17148S7; Thu, 22 Sep 2022 21:54:53 +0800 (CST) From: Wei Yongjun To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Subject: [PATCH v2 03/10] drm/panel: innolux-ej030na: Silence no spi_device_id warning Date: Thu, 22 Sep 2022 14:11:56 +0000 Message-Id: <20220922141204.1823931-4-weiyongjun@huaweicloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220922141204.1823931-1-weiyongjun@huaweicloud.com> References: <20220922141204.1823931-1-weiyongjun@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: Syh0CgC3VW8qaSxjR3npBA--.17148S7 X-Coremail-Antispam: 1UD129KBjvJXoW7CF48CF4UtFW5KF43XF4fXwb_yoW8XrW5pF sxJ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el@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wei Yongjun , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Wei Yongjun SPI devices use the spi_device_id for module autoloading even on systems using device tree, after commit 5fa6863ba692 ("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 panel-innolux-ej030na has no spi_device_id for innolux,ej030na Add spi_device_id entries to silence the warning, and ensure driver module autoloading works. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/panel/panel-innolux-ej030na.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-innolux-ej030na.c b/drivers/gpu/drm/panel/panel-innolux-ej030na.c index b2b0ebc9e943..331735bb2b4c 100644 --- a/drivers/gpu/drm/panel/panel-innolux-ej030na.c +++ b/drivers/gpu/drm/panel/panel-innolux-ej030na.c @@ -293,6 +293,12 @@ static const struct of_device_id ej030na_of_match[] = { }; MODULE_DEVICE_TABLE(of, ej030na_of_match); +static const struct spi_device_id ej030na_ids[] = { + { "ej030na" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(spi, ej030na_ids); + static struct spi_driver ej030na_driver = { .driver = { .name = "panel-innolux-ej030na", @@ -300,6 +306,7 @@ static struct spi_driver ej030na_driver = { }, .probe = ej030na_probe, .remove = ej030na_remove, + .id_table = ej030na_ids, }; module_spi_driver(ej030na_driver); -- 2.34.1