Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1575982rwb; Wed, 5 Oct 2022 01:27:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GtvOqwZTCrfXQxCpMzZRbeyFy3uOjzAgu8pJ/lg5lCa5cugI+Om3ZKT4zvVD6TNvvDAQ9 X-Received: by 2002:a05:6a00:1a07:b0:541:6060:705d with SMTP id g7-20020a056a001a0700b005416060705dmr32176871pfv.61.1664958430129; Wed, 05 Oct 2022 01:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664958430; cv=none; d=google.com; s=arc-20160816; b=SRvHJPo20/AK0IQG6NntAU3/wxzurIQ5H3awk3TtDlhh1B7zAzpCKzlyNGdA8KXAEt DMRAMHn9awFXnz3ZhTGDZYBbMoaV0Znkh8MZZ8jquh5Wy3RNI7v9KjJ+QrSv7dNzg1+O ZY3PhAsPjHvkrHneseJvcnoiybCgDdg9bSE884+zINWkSevhV5dWBgVf8JmshvRelnoi H8Mgo9c3c6843GHvueZM1RU8gh2ZFOAmhmslFoicmIjoH7wbqunzIDA/62LVEbU9SIG3 wrrw+FJKUdEHJqtto3rdsi9vwGiCOQO3HEfWhJiWBfSDRXa35Z9YUPj6RmcpBBvVzWnG 9Fxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=D4Djt2WHWdTupc+oUzs5c1sYBFs2LXWtRbS/jfMJSUA=; b=GQp2dG6L1Pff4ax13BZNzXFoBqtVo8eKz21UPjGdMKC/WTrneABkxmqx5a4dZy/NGv A4L5cRxxvdwtx5Z2WH0vqMheByGF50dn2H5d/6rLYUItl9eDSadPcgMalySkAAOVnPRV zWaA05KaW25xYvmmChv2lWbzkN2W1hWABXf6rlz7nxqvG/1f3PP14R7dAGipkp/5U4MY QrdCccSRn01JShtbeOpVUoXDOn4kbXKAmgFV4NcSLuibR5qtdJXj9Nr+aktnA1EnTlV4 rRSi+PbG7X9wQep+uh1U2N2wXZBmHcqkgVbiTtp/3v3FJuphA8xNLTmgH0FPZb2CC6xa ieqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BaRRCZcH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b004468e68f4b0si13788894pgb.771.2022.10.05.01.26.57; Wed, 05 Oct 2022 01:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BaRRCZcH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229923AbiJEINo (ORCPT + 99 others); Wed, 5 Oct 2022 04:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229904AbiJEINm (ORCPT ); Wed, 5 Oct 2022 04:13:42 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BA6472849; Wed, 5 Oct 2022 01:13:40 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2955IX64022218; Wed, 5 Oct 2022 10:13:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=D4Djt2WHWdTupc+oUzs5c1sYBFs2LXWtRbS/jfMJSUA=; b=BaRRCZcHQpRHjovT77S1NPeHt7ajs0uc5NL9NpsujuiVcL/7ij4Uwpv2SPhioeY+n4/Q KNWExwUxXF9g2HcvuC2tBFcfKWr/NPkWsvz/VnR/SRMD5cBJz7lo/CoR2Jt0mBAK7Y3c eBBELNLszSXkHKIwfRwhA2f1SMjYAv0YDOiB6VIDbLMsluEC9H63WJRSSCSfEqrqjutF tTLeDf3f5H458VuQXttE1sl0NCTYzABatr0J3hcYeSSZ7LeHg0ZLRCjwcyJW8ACHU8yP IQ0nC6q55NGkZuTWCzmZycL10NT6+BluPD5VjQA2tNuEqn1573yqnOqNww69Y2PHfk1q kQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jxapc5sdf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Oct 2022 10:13:34 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0A66F10002A; Wed, 5 Oct 2022 10:13:28 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7D850216830; Wed, 5 Oct 2022 10:13:28 +0200 (CEST) Received: from localhost (10.75.127.117) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Wed, 5 Oct 2022 10:13:26 +0200 From: Arnaud Pouliquen To: Bjorn Andersson , Mathieu Poirier , Rob Herring CC: , , , Subject: [PATCH v2] remoteproc: virtio: Fix warning on bindings by removing the of_match_table Date: Wed, 5 Oct 2022 10:13:17 +0200 Message-ID: <20221005081317.3411684-1-arnaud.pouliquen@foss.st.com> X-Mailer: git-send-email 2.24.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.117] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-04_09,2022-09-29_03,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The checkpatch tool complains that "virtio,rproc" is not documented. But it is not possible to probe the device "rproc-virtio" by declaring it in the device tree. So documenting it in the bindings does not make sense. This commit solves the checkpatch warning by suppressing the useless of_match_table. Suggested-by: Rob Herring Fixes: 1d7b61c06dc3 ("remoteproc: virtio: Create platform device for the remoteproc_virtio") Signed-off-by: Arnaud Pouliquen Reviewed-by: Rob Herring --- Updates vs previous revision: - replace the "of_platform.h" include by "platform_device.h", - replace "Fix-suggested-by" by "Suggested-by", - add Rob's Reviewed-by. --- drivers/remoteproc/remoteproc_virtio.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index a29e3b8ff69c..0e95525c1158 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -13,8 +13,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -593,17 +593,11 @@ static int rproc_virtio_remove(struct platform_device *pdev) } /* Platform driver */ -static const struct of_device_id rproc_virtio_match[] = { - { .compatible = "virtio,rproc" }, - {}, -}; - static struct platform_driver rproc_virtio_driver = { .probe = rproc_virtio_probe, .remove = rproc_virtio_remove, .driver = { .name = "rproc-virtio", - .of_match_table = rproc_virtio_match, }, }; builtin_platform_driver(rproc_virtio_driver); -- 2.24.3