Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp960733rwb; Tue, 4 Oct 2022 13:13:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM434lNz70GIfjxjlDBlPXBmyKpTEe/LtFLvzp6LW56p4I0g3pztMVr9UMpSRX3lQ0dyRxh8 X-Received: by 2002:a05:6402:2706:b0:459:788a:355b with SMTP id y6-20020a056402270600b00459788a355bmr2364210edd.315.1664914387682; Tue, 04 Oct 2022 13:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664914387; cv=none; d=google.com; s=arc-20160816; b=pwg/OD+vtpGmPLWR4QjRYEl5QA+SVAQ6PypE58jtN+VmwrUCx6TM9NguAaW+HdafGb p5Hkb6JymPM9MqSR/paW8I+vo1OltNlrI/g3trRn2hpGXgAKjc+IWnZVQeGrEg03LM/3 +ltbtWZdgyAIgEnPBlCH/yZp/vqXseG4O2Z6ZBQIPSrovZ9rB3UwGGxse14rv5MqgLYj fFefC33ezwToNk0bBYN7C1k1WNvfUX9YWKeKcqBEWdwET7sBBAoplMxSDHpY3pwJ6uSG II0oa4qW9lHZcSUYCbJfbDoxuCfDzpC4FrSQd7/3W+Cp6udDwqwPU/RGu7/Loe6p41O4 u72Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7dAFZ0Dv74viOjab/o6SdVduwwf4JhWfgRlUOHBIw8s=; b=xs/UfzHuoHp95zp7uvIxDyfGTC6waO4Sz5Vc5ai67svvTCvOEe7nfvTklEJlfQ8SEN 8f1DynILORC4HA4VyjeXBYOVuQQI5EOVN0eUS7He0sQMbrWH87v0VmDAtSAUuy5QC10j VgfpR3ijXP21FiL1HmObIuD9u1ULNhxHC22/0FFrVno0KDP5/rAQ2wuIwg44YN8Jz09y vflK14JkFVaQ/63v42AV/IH6f8S68+OGpKfRPHgvEr5vEBO4A+ORyR7j2FctWhajhCRL 95Yxr7U5/nCfPiwh+MSg1MfuXjyO3plLT57sK9+7n14pwSX4q3bc8IGCLBt++08IvC/p lsWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1Rf07UZ; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a170906284600b0073d581b0906si9963213ejc.278.2022.10.04.13.12.42; Tue, 04 Oct 2022 13:13:07 -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=@linaro.org header.s=google header.b=p1Rf07UZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbiJDTwN (ORCPT + 99 others); Tue, 4 Oct 2022 15:52:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbiJDTwK (ORCPT ); Tue, 4 Oct 2022 15:52:10 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC3B76B153 for ; Tue, 4 Oct 2022 12:51:56 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id a13so20307839edj.0 for ; Tue, 04 Oct 2022 12:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=7dAFZ0Dv74viOjab/o6SdVduwwf4JhWfgRlUOHBIw8s=; b=p1Rf07UZ6nQSCG9E2dB1vRGVLdfDE6pwCDbvEiwzmXiNm8hJsNPkwiXVEXblsgcTMO VD7elVi7Im7+BdHJKgOrYhC1xTHRHa6v75jV+Cj5KYkTaf2vqtTXohDgNbX5xUavrV0+ oR+j5h3G4GJaGr+QCRnFqEuAr95AIRhOWnhGhQH3PG3JdXHqZ6uUcn0icJxqTCJ8TWSN W2NrDXPLKkw+1VBcphQbF2Q9Esii2ytqFi+A1ZJ8qPHSczRAp2pkyS3+7nRmsbflYICs DKyBZrrJfVWF6hfc0ESiJYhiqC3TGVY99zj+NP/9rudqbBJeXwvQ8/mLhg+Zr6/c9SFU Mbpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=7dAFZ0Dv74viOjab/o6SdVduwwf4JhWfgRlUOHBIw8s=; b=VGDQuP2uV2wAhGoUGpDbvMrWSWbFyqukCm9L+dVlne0UatxCaILLSmDL6+VUE0y2KY hzEnNSilFNy04LIOytTZ5Ei9Q+sqZfmAzsKgkZCZZQLvdQuaulaSJZh5+eoUjz9t98bD XTbmVkiLbIjS3hF/U8v8I2JRJKI/mCl5rd2mSMO62Gy6MrZR4lRnkWW+Dt5BMkj7Tku7 +2lmNWq6OXZqNE0bszh0luXoResOxFiHpsFzaR9fS6D17qKa84ZXB+2xSDB4n4P9rrZk nIMKytMMuTSck6SOrxI81qVQmT8PvPKdl/QnP+bqhlGI2ydeoTVfDjwLxf2OzI3LIbNO 8F3Q== X-Gm-Message-State: ACrzQf0L2XLIEaV9LWKcXCpzgIVNUjtEdggIA5dVOPGWSs+UGwCDODES adrQRGkXBCuGAAW4uwhsQuhHuSZW+BklYbvgwX+czw== X-Received: by 2002:a05:6402:40d1:b0:44f:e974:f981 with SMTP id z17-20020a05640240d100b0044fe974f981mr25889439edb.222.1664913115282; Tue, 04 Oct 2022 12:51:55 -0700 (PDT) MIME-Version: 1.0 References: <20221004174018.3319712-1-arnaud.pouliquen@foss.st.com> In-Reply-To: <20221004174018.3319712-1-arnaud.pouliquen@foss.st.com> From: Mathieu Poirier Date: Tue, 4 Oct 2022 13:51:44 -0600 Message-ID: Subject: Re: [PATCH] remoteproc: virtio: Fix warning on bindings by removing the of_match_table To: Arnaud Pouliquen Cc: Bjorn Andersson , Rob Herring , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On Tue, 4 Oct 2022 at 11:40, Arnaud Pouliquen wrote: > > 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. > > Fix-suggested-by: Rob Herring I'll change that for "Suggested-by:" > Fixes: 1d7b61c06dc3 ("remoteproc: virtio: Create platform device for the remoteproc_virtio") > > Signed-off-by: Arnaud Pouliquen > --- > drivers/remoteproc/remoteproc_virtio.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c > index a29e3b8ff69c..26a7d8c498bc 100644 > --- a/drivers/remoteproc/remoteproc_virtio.c > +++ b/drivers/remoteproc/remoteproc_virtio.c > @@ -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, Yes, this is quite simple and slick. Rob - is this what you meant earlier on? > }, > }; > builtin_platform_driver(rproc_virtio_driver); > -- > 2.24.3 >