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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A63C7618A for ; Sat, 11 Mar 2023 17:38:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230357AbjCKRiF (ORCPT ); Sat, 11 Mar 2023 12:38:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjCKRhz (ORCPT ); Sat, 11 Mar 2023 12:37:55 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE18C97F8 for ; Sat, 11 Mar 2023 09:37:31 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id o12so33035196edb.9 for ; Sat, 11 Mar 2023 09:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AA/7TzUbUtidDqRHpHd82dpik34r4cCW1rem2TpGlkc=; b=kS28bmJvIRgUqxsDSIFRumkkyb0+Yr7PTRHD/xgOg8rM9MGCZO8wkTvyBd8wCBOBb7 JKYS/neVWEbfDPUgv3EITMvamCix3VUDC77bSUhPhxlhVOoyWC3fL+lOkBFyiSXBBxUk aPVfTnACgSRbW+tA0slArAt2BHfrebH6hUYm7Q1DvRU2QXafmbJQlO5nCkAYgmSS1D5c CTDUTxU69LknhWPmZGSb7knKb+AqOklo/JxOMJgn+TQ1lwePHpOiBWVc6FwvYDxdW6Dc 9MuRmh3EQXFqkb8A6syv9jYmLX9EEZ69bjcJc5Q6mCVI2zpM3s8kxRpVguYrtAtjsWwY Vcnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AA/7TzUbUtidDqRHpHd82dpik34r4cCW1rem2TpGlkc=; b=XwQlfhcg2yGUBXyoV528oc5vR1+leTbXL2PMTmsAqORaHWxGu9/kSyYIc2uwf/Ln/A Vi54+X4+sZtnAnFq8ooHOozG+Ma+FP8UVoWQzX123PbgjakSnj8TDjdBPPs1lbdjG6QF qmgNNm/1BW1cdXBjEnBGoqw75egtd8jcJLh1IkG6lz745ziyCpi+6+Gd/xFIwmCsuZUR muGAF4xGWRp1Rd0VXnM1Cp0T6Ult9g8tl4P+qasKHdAderUpnHu6QO2gqWkLtOwZma4I Yfmzxo8rKdIj7pG2bHYPYCkqkJ1w8/kqk10tZRRK7bz0F2HLHd8UcX8NzS1Zz/+P09ke N7ew== X-Gm-Message-State: AO0yUKUtMXMJZD9Aiuh6v9bGvZd5syf4V7iKuFt6lohseXeKWz2udtrr acwy3ZFucRuZaxt9zWbplyx0kDKFDJ9rbGkZSIs= X-Google-Smtp-Source: AK7set8YRyIDU65T+c9e+spjMLyVYQQMb679cFzPtTuclharU5ugxZphybZdPkldQ6pftwD0+Z/Brg== X-Received: by 2002:a17:906:66cd:b0:8e8:602f:847a with SMTP id k13-20020a17090666cd00b008e8602f847amr27771691ejp.24.1678556194970; Sat, 11 Mar 2023 09:36:34 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id jy2-20020a170907762200b008de729c8a03sm1315253ejc.38.2023.03.11.09.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:34 -0800 (PST) From: Krzysztof Kozlowski To: Greg Kroah-Hartman , Mathias Nyman , Richard Leitner , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/7] usb: gadget: renesas_usb3: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:22 +0100 Message-Id: <20230311173624.263189-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173624.263189-1-krzysztof.kozlowski@linaro.org> References: <20230311173624.263189-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/usb/gadget/udc/renesas_usb3.c:2811:34: error: ‘usb3_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/gadget/udc/renesas_usb3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index bee6bceafc4f..24ff3bce68df 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -3039,7 +3039,7 @@ static struct platform_driver renesas_usb3_driver = { .driver = { .name = udc_name, .pm = &renesas_usb3_pm_ops, - .of_match_table = of_match_ptr(usb3_of_match), + .of_match_table = usb3_of_match, }, }; module_platform_driver(renesas_usb3_driver); -- 2.34.1