From patchwork Sat Mar 11 17:36:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663293 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 DA0B8C74A4B for ; Sat, 11 Mar 2023 17:37:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230180AbjCKRh4 (ORCPT ); Sat, 11 Mar 2023 12:37:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbjCKRhw (ORCPT ); Sat, 11 Mar 2023 12:37:52 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3E377AB1 for ; Sat, 11 Mar 2023 09:37:25 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id i34so32999920eda.7 for ; Sat, 11 Mar 2023 09:37:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556191; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UVGV3sr4u5bJT2FrvZEHa5E7DGB0ljgtzzi50mDOOcE=; b=DWBpsxFXI4UyjP3VzprfoyfTwOYRgeeCM86IYd+ShbMLHCi6yj4qU0ISdyaxPSfuw6 PK1VxWyRjWotSX5+JgcLq8W6Kgi7oaTe/yKMDSK64264SjcvHY+Z3iPiUSJn9EzDb42o G8uKdMAqf1RzlK/xEqfyACWCQbYbVVMcRDN3tAWPO1BcPkfjDFLm97eexUzPJh4hPG8z IGsTTmz4viyKOtMBEgdT7PJcOxTugSPaoUhAjQG3thR50CJ23gNsDGmIsoIJdvy2wGCs 8bJLCRG76cmjzJNHegksY8PDI7iaJri+E/GdaBxe2VDgkhSRLcwtbVSEX0x/IVWvf7g0 zQ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556191; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UVGV3sr4u5bJT2FrvZEHa5E7DGB0ljgtzzi50mDOOcE=; b=5MgfT7p4Vxk1VZjDzfYb76qC1ZH9jo8e1rC7Lw3NB4bV28Tzd8LwLc4Lq4SUAqxwTe JGjoPriDmg8MkdTKTlsF+mGNowqWt2kWmIewo6PnVef3W7Ky/fbMVdQY8AAZj8es/ohu uzDq4moSXzXN2P+QyBo6ArkMykGiyX0yIQzfbnQ5h6kTWeficMWBaH5WSyo/xwYn/1Dz Tg5pYqMxh8Ge0dnv9Ar6lxiaJPT5G6UGiVcMUlvraTZ69P44YSKouC0uM5IaNzm1uV+4 htZhdrcp7IRplk5fOI+dMEzlthxzKeH/+yS8c5l2mTZfvVLLodel+t3rveBqzbpBmhts Legg== X-Gm-Message-State: AO0yUKW8yFI9gVHxZq+zqSKOZRSszB0zyy8/wQDHa0tkcZI4CYyccX/P snAcYrV0OQkUlxQSIbFbGnxKPzjbMIxf4TEXV7Q= X-Google-Smtp-Source: AK7set8qJ2FcXrIvKnGT1fAfQe7qW7VdmTnCy8ONH3WuIJjRJQ06o+NwrYbpP4IJdjuk3ZITP70GVw== X-Received: by 2002:a17:907:1110:b0:91d:dd29:7e73 with SMTP id qu16-20020a170907111000b0091ddd297e73mr3963717ejb.49.1678556191019; Sat, 11 Mar 2023 09:36:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:30 -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 1/7] usb: host: xhci-rcar: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:18 +0100 Message-Id: <20230311173624.263189-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/host/xhci-rcar.c:269:34: error: ‘usb_xhci_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/host/xhci-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index 7f18509a1d39..b12c2c19d107 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -312,7 +312,7 @@ static struct platform_driver usb_xhci_renesas_driver = { .driver = { .name = "xhci-renesas-hcd", .pm = &xhci_plat_pm_ops, - .of_match_table = of_match_ptr(usb_xhci_of_match), + .of_match_table = usb_xhci_of_match, }, }; module_platform_driver(usb_xhci_renesas_driver); From patchwork Sat Mar 11 17:36:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662329 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 DCDFEC6FD1C for ; Sat, 11 Mar 2023 17:38:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbjCKRiE (ORCPT ); Sat, 11 Mar 2023 12:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230187AbjCKRh4 (ORCPT ); Sat, 11 Mar 2023 12:37:56 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 296EEB32B1 for ; Sat, 11 Mar 2023 09:37:35 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id k10so32951332edk.13 for ; Sat, 11 Mar 2023 09:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556191; 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=qyv/Ot8W77P43I7crwiy1gRRQ+CJGNpQ8ExpT2cUljE=; b=i2PRkfHTxKwOaApCmbdBDXXomfd/yMBu1xJfGVyWQ4GGTJZJeUm2SCV+wUW7/S788K QlHeG6UH31x3KebDimUYOqGUIVG7jUrpDvuv0VMJ7fKpRhm/XwUr75QsrgAhXHk8k1Kd rLWy9QWPVd8Mfw9jylDRI+49godbsHbW3IZSrSDzyqgiZTiAUJ52uChEuCT1MpfjL8+m FTgeOilF7vVNwlA/ZwQIfQBdiRRNKtEWFUbdaW1aubJ11u5cbbWwMccDztU4Q6fxAxqm lGYkfQCoPaszs/Bcde74oCib9k9mDiGTsDyu1MtvISRKMz+osby21mCFmXsmUUCC7X1M UIcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556191; 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=qyv/Ot8W77P43I7crwiy1gRRQ+CJGNpQ8ExpT2cUljE=; b=Iyqmow77WCPzv2tEl8ZK3yUTlMAI0N8CFWUcusRmpuz9Xz+GVB2UTWS+9+rXUu5STG 1Mi7IPZeSrDPPesWTyyAZC0iVOb2YY30yIzZbVK+hO9QKi3BLLlxhiyE8YE2m8GVbwlw aDD81HB/6R4Yo2f2PT2qvSzoopuYBzV3aOXe5/xj9Y2OGBG38NRbUQ0Ah6t64HgaFaTG 1xHLiMSGS+N5AIuQIkZYd+DJn14MAKaUVtsbOGvfnbqHYMOTf3+DDvG5BZVGBdCUVG02 FmBLCdfmq7+EIaOOvxpKlk0/YVZDfs43pttLG33NjiZoNbMpeeugBRnqZ6P9kUrZloId kAmA== X-Gm-Message-State: AO0yUKX9gZNHUzLocRSLFCw+wXNfy5i/ST99sDvzdcnHl7aDtVA8Vgs8 mAcLjWXHBTgKzgSG0O8thq10mA== X-Google-Smtp-Source: AK7set8/ddWXTFvR83RNYypGa0WBBDqK9TW8JW4bID1syStw8CQae7CdIFT3RRXevMHmabYbISlaMQ== X-Received: by 2002:a17:906:4783:b0:8af:2107:6ce5 with SMTP id cw3-20020a170906478300b008af21076ce5mr40384100ejc.35.1678556191866; Sat, 11 Mar 2023 09:36:31 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:31 -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 2/7] usb: host: max3421-hcd: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:19 +0100 Message-Id: <20230311173624.263189-2-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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/host/max3421-hcd.c:1943:34: error: ‘max3421_of_match_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/host/max3421-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c index 28d1524ee2fa..d152d72de126 100644 --- a/drivers/usb/host/max3421-hcd.c +++ b/drivers/usb/host/max3421-hcd.c @@ -1951,7 +1951,7 @@ static struct spi_driver max3421_driver = { .remove = max3421_remove, .driver = { .name = "max3421-hcd", - .of_match_table = of_match_ptr(max3421_of_match_table), + .of_match_table = max3421_of_match_table, }, }; From patchwork Sat Mar 11 17:36:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662330 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 C286FC61DA4 for ; Sat, 11 Mar 2023 17:38:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbjCKRiC (ORCPT ); Sat, 11 Mar 2023 12:38:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbjCKRhy (ORCPT ); Sat, 11 Mar 2023 12:37:54 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15D7A1007 for ; Sat, 11 Mar 2023 09:37:29 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id x3so32969319edb.10 for ; Sat, 11 Mar 2023 09:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556193; 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=0cBXwdVVf91SB8bAJyIJXNgZJKfax5M+P+jqXsh7j/k=; b=i+uNehPbqsApAXzIkJ9FA4tcJqNI3ycHEhXKRsF61f9YF+Tr5lk9/MldBCiGnUsAiT xRIa9WnXeDiFvMSS43XvEaFAVQps7Uqt9YTuZtKOR+05nPNB96ruq9IDiUHkJKj0hVjQ 9/PygBnLUFJkzsf2yErCA8Zvx/KDGHtD62ByE0DdMF0rGo0ZZ4A9WA4muudaLRpSVtL5 ldWhtpQNOfDyBina390f1OuSOijEA4uDzNcQUPb69QcUga0IGpBbqhR/HW1bvu2aD2BP sPT0jEjX33l0/oFaZHSuB64xBweXyttA5WQlFd/kDDfRrRzXug9hNxG43BG8pOaNZjnf TUAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556193; 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=0cBXwdVVf91SB8bAJyIJXNgZJKfax5M+P+jqXsh7j/k=; b=pL6acXm/bVTccAHZN2Kfu2IMlcENeeYtQuUes8bMdsFtBt5KaKsRAZr50m1ISVcQYL r58tB3S+hdGmLmWMTXSfvc9uiZXHJlYEUfisBWvmpmk+/sNiYvMOeG9bU5Nlyjwo//su iYH2NmKW4J0luUv4obL3s2CqGsgPurCqUDxCyBLvIvcVzK2stNXT7mk/vpG+2cluAnkX /jwzz9VboMWp04VSuOD59t0iD81+MwBTTgYjrHmcAhziyFlP2UtrFO8AjUVFMMWUZFSt db9MBtIhciPshYkFRsUu25aykxRLA7w/8GG3VYNBVzRSyKIYtYIKZ4yxYFGuVxTympGn KIYA== X-Gm-Message-State: AO0yUKVkI7W/qX4XrEhHlIYdtcNjcZh990HcdzdVwjdPoJG1LdgRahTn ZdeKn71DFQGzP1tCh1dyj4lcVA== X-Google-Smtp-Source: AK7set9sbE6kJKu4Fl/uJAED4UQyZQWXZEQlCNQzNbupCO/drQarzCuEYybYIW1lcoUnlQBycekXRw== X-Received: by 2002:a17:906:3e52:b0:91e:fcea:f25f with SMTP id t18-20020a1709063e5200b0091efceaf25fmr3617220eji.32.1678556192876; Sat, 11 Mar 2023 09:36:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:32 -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 3/7] usb: renesas_usbhs: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:20 +0100 Message-Id: <20230311173624.263189-3-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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/renesas_usbhs/common.c:535:34: error: ‘usbhs_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/renesas_usbhs/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 96f3939a65e2..fa34efabcccf 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -823,7 +823,7 @@ static struct platform_driver renesas_usbhs_driver = { .driver = { .name = "renesas_usbhs", .pm = &usbhsc_pm_ops, - .of_match_table = of_match_ptr(usbhs_of_match), + .of_match_table = usbhs_of_match, }, .probe = usbhs_probe, .remove = usbhs_remove, From patchwork Sat Mar 11 17:36:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662328 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 869E2C7618A for ; Sat, 11 Mar 2023 17:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230379AbjCKRiJ (ORCPT ); Sat, 11 Mar 2023 12:38:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjCKRiC (ORCPT ); Sat, 11 Mar 2023 12:38:02 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0FFEDB49E for ; Sat, 11 Mar 2023 09:37:36 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id k10so32951540edk.13 for ; Sat, 11 Mar 2023 09:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556194; 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=KC9i5n8asjM8jylrUmHvyHqC1xMOAwXkhiHJbgBRUXg=; b=IepgW+QXG7KAxULdrdbYkLGImQ9fH+VcF5R6PvkN52JfhtumdgGjRMwLJDyjTbYocq i2oYs2r1qeFgfGt3JZBLmHodNtCpLiOf6m967/4/bXaXnFAUNCaOb6o231btD0E7ksxw x37SoPNHTOlUm03sdH8jj43+J1X8kt/H+YcormpqI3F4rEoUbcsncwiX/j7awDH8Fbp0 3pkTRmFdZ4cQbQHexf0VeR5k/oOZa4fgtPcSHBT5bxNx65juWSTeshbuG/I/ZDW1WiE3 1NNG1qVCFj+Hm31uRWFDFWPkrlcCj4KMFKH1Oja3oNSyCr5DsH+0omLMmPT299YL/53m N9vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556194; 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=KC9i5n8asjM8jylrUmHvyHqC1xMOAwXkhiHJbgBRUXg=; b=ofEb9AA76V/p5nZU7Ayxik6m+qDidJkRvt9+fjlk6dbVQnu+7awewMDNSZ0Ef5WzGa u17V7rEe1UJzMLQEp+W21PvxCNTP6ZrXt6CvvvGLTpai+M1AZGvHIcmKH1Dgs58rO7wT ldXfa2hNFBG3JXs1p8HmSXq6dhmYZIF2wVWd+GRFXE+qH3iBTK60Qu3ura63FvQzx6Tt NVUaWohrTIyl7cMi1brPfxN0NNmOgQe4vNJ89EEM8orwKiXdVu2D081BBxTOG7KNt57W 37pDk6nwfu+WvVYK57UNXYGqzrbGkLtaQdjuF4pA434eJPKVQBlUQOspi37FC2fge9Cx 9Iuw== X-Gm-Message-State: AO0yUKVVQWzvnZaiHOCL8/b6ZU/mlCfMJZEqIII5vaXSHgv0c1UWPmED a57Z6pYeTEPHv+dMmAdA5EU6qb8c3rwlP95zDhM= X-Google-Smtp-Source: AK7set992N5KyTV+Kc/Ns7ppLpIqv+kUzxVVHlXH4uBYYsAdLkNYwDXfffhY/9vBzI4SRnwAhGTh1A== X-Received: by 2002:a17:906:58cb:b0:8b1:2998:6474 with SMTP id e11-20020a17090658cb00b008b129986474mr36336448ejs.16.1678556193912; Sat, 11 Mar 2023 09:36:33 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:33 -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 4/7] usb: gadget: rzv2m_usb3drd: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:21 +0100 Message-Id: <20230311173624.263189-4-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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/rzv2m_usb3drd.c:120:34: error: ‘rzv2m_usb3drd_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/gadget/udc/rzv2m_usb3drd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/rzv2m_usb3drd.c b/drivers/usb/gadget/udc/rzv2m_usb3drd.c index 3c8bbf843038..8855d8e8d793 100644 --- a/drivers/usb/gadget/udc/rzv2m_usb3drd.c +++ b/drivers/usb/gadget/udc/rzv2m_usb3drd.c @@ -126,7 +126,7 @@ MODULE_DEVICE_TABLE(of, rzv2m_usb3drd_of_match); static struct platform_driver rzv2m_usb3drd_driver = { .driver = { .name = "rzv2m-usb3drd", - .of_match_table = of_match_ptr(rzv2m_usb3drd_of_match), + .of_match_table = rzv2m_usb3drd_of_match, }, .probe = rzv2m_usb3drd_probe, .remove = rzv2m_usb3drd_remove, From patchwork Sat Mar 11 17:36:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663291 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 3C0E9C74A4B for ; Sat, 11 Mar 2023 17:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbjCKRiH (ORCPT ); Sat, 11 Mar 2023 12:38:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbjCKRiC (ORCPT ); Sat, 11 Mar 2023 12:38:02 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CA0CCB67E for ; Sat, 11 Mar 2023 09:37:36 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id x3so32969499edb.10 for ; Sat, 11 Mar 2023 09:37:36 -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=lSU4P6FPf4VDYp05XtJ9zGrpOVJiqV0djzrAUS1qzVGBAGrKoBFjxdZGMx9lOwCkc7 2ftbZnBsWxhqr1j9vA1xpuFsR/94yCfPEfRDr49eKcC/cKk4v8j/F+IeiM0QYtIrzEb0 TwMKwVbri5VmK3roLiv3yslMsF7kpmcrrVaGmPju7LvEFNzLUNChC+SFZBYksVVrDvBz oOy7KuEmydkCrqtBXOctnG+FPiBJscscWWOenqlEYwk9M3Kvv1BTFzV2X1qQKZJZJeKC XAteGtISJ1yBVrqpWIU9feU9WOygU+nWlT/6gzJV5rL6AXwcV50L/uLocp90F+1/x3fD N7bg== X-Gm-Message-State: AO0yUKXOle7SWdeTHrvwY5p87q8+atF1bP9u1g76oSe/+cCf1I/Mvpru ZjGY5xJ6yHy7M6Q5sTXklTJxCg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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); From patchwork Sat Mar 11 17:36:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663292 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 9CA18C74A4B for ; Sat, 11 Mar 2023 17:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbjCKRiD (ORCPT ); Sat, 11 Mar 2023 12:38:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjCKRhz (ORCPT ); Sat, 11 Mar 2023 12:37:55 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3B1C8592 for ; Sat, 11 Mar 2023 09:37:31 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id i34so33000391eda.7 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=1678556196; 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=51J7ma9iyDiEzHar+KOLvIqKc+iCxvx6uDovr0nOXMg=; b=jgQY6/80LqgXtTIC1vgAyzfbe8AwY+LHUoUfe1K+cYgQgzaVPF6WvuR9nrzH7IoUs+ DaIBr9OuL2SMQfIiY096xCQbW3dAHoPoBuap7PVTUquW7qHWtzZNSaYzwlMecLRPaZl1 zARLQgo+5+PHYGAJb/J1XnWUgjNNJQujb8cPN0fdR1jpwaFM7wjYMkgPkOClKcZaYiuG 9Ixkx7jrnCIniVQe4gQRL2SWIX15beqFb9sQ2zPT1GS9LwKgCwDdkwI2tDJC+4LV99xi 4qoUA99NPSmA2B79tLl5MjnnIkFswjf7SYcNeZe57vQRaTNYp5kJD0A9UPWyMlVX31HH 9Bvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556196; 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=51J7ma9iyDiEzHar+KOLvIqKc+iCxvx6uDovr0nOXMg=; b=Fp7JQd30Ej2oC9gdVUCyonpDUb2gL5gQQ0w3Bfp8JEIZeeWxElobbQwqIviFo1zm8z FHjnjTIBtOIA+DeTKmFZBgZ0kK4WPoFiP4Ki0AIGDKGPOtIVhfSq4vbRMS71si2vmDBN vHdUmzbCpu22TjjZVJnh7QUQ7XR/EzHkwUnKZZSnuyZwxfoY2bef8BxKe+DzMDRL9+GD 4MzCcoTQw8wm6PQbWHOCkZsnyozmb9/a0QBqM6wyNyR867kM5mYYcHhMwTQ6PjwvJztL fHgWQpk7irlvKtk5LyT4P0pczMyLk3B2JEcb4U+3KOF+C+NAQtpjMXD2BkbM4qoejYZJ I/AQ== X-Gm-Message-State: AO0yUKVHShkr2wDFuy+MucIbzyC0mnJGcL6imHtRdCZdtnKVKjbwrVQ3 hkG7DRP2gW3dowUpC5MkQ+xgSw== X-Google-Smtp-Source: AK7set9r7turVfzVMRHL6C0LQnIOCXg9/qqvDM83ESDE0B20wvaErRVpq4LpT0V1m8cTOfa6X4NUzQ== X-Received: by 2002:a17:907:7da6:b0:888:b764:54e5 with SMTP id oz38-20020a1709077da600b00888b76454e5mr34727430ejc.71.1678556195869; Sat, 11 Mar 2023 09:36:35 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:35 -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 6/7] usb: gadget: max3420_udc: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:23 +0100 Message-Id: <20230311173624.263189-6-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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@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/max3420_udc.c:1312:34: error: ‘max3420_udc_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/gadget/udc/max3420_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/max3420_udc.c b/drivers/usb/gadget/udc/max3420_udc.c index ddf0ed3eb4f2..12c519f32bf7 100644 --- a/drivers/usb/gadget/udc/max3420_udc.c +++ b/drivers/usb/gadget/udc/max3420_udc.c @@ -1319,7 +1319,7 @@ MODULE_DEVICE_TABLE(of, max3420_udc_of_match); static struct spi_driver max3420_driver = { .driver = { .name = "max3420-udc", - .of_match_table = of_match_ptr(max3420_udc_of_match), + .of_match_table = max3420_udc_of_match, }, .probe = max3420_probe, .remove = max3420_remove, From patchwork Sat Mar 11 17:36:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 663290 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 66550C61DA4 for ; Sat, 11 Mar 2023 17:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjCKRim (ORCPT ); Sat, 11 Mar 2023 12:38:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230325AbjCKRib (ORCPT ); Sat, 11 Mar 2023 12:38:31 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D70C47ECD for ; Sat, 11 Mar 2023 09:37:49 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id er25so4913216edb.5 for ; Sat, 11 Mar 2023 09:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556197; 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=rVsRHvp4v2BZsDFyVhp2lzWzUanEACS05jvKHMEi9Oc=; b=tcexlUBsPwBVa0P2zR4E94lM2KxLiHbo5zOn6DBz7gZup6TVuvKaQ15pB5QxlYCMzq ercJh40HVV3I8+BKPJU8THwCnmxiWWPNpVLer6OQtcxk24qS2yeAqCVeK91eQRq6xB0d Ge25egWdeMznxKjF62VVua/KyHwWxKLn3sApSQSewMnUe1QKfltxt+7GKIlQQvu1ZPEx B2+/J5BBrI37z/xPOqoJ9R/m13PlunBJlZ5L9mx3fl7HyxpRA7HFEoO+2EY1CRMk6hBq UJ0lDg5llQr9ic0G/R7YgDI+AUg95Zse6lmhXUGrizUaiKyf0QyykKncGC3JkjeYf8sW ioSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556197; 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=rVsRHvp4v2BZsDFyVhp2lzWzUanEACS05jvKHMEi9Oc=; b=53mQDlVpNq8fmaaH9mVxlK+v+a2CSjY1PGKe9ZQ+BS9g8WTrIKCEwwwNfOR3l50Px6 44PcpnWapjBFvaAwq0d6Dn7HPJfFSv0PlRINYwDcP3hz4G+Y+bQcPvN/SE0ODpzikSeB BP9yG6aNcbLI87UmAdv3ZF0vlxldTitC6LJrOr8iQNzSoR8VRo5NQWsUqqxzwox8zcCa 5kzmvXKgG1aSwVr6ZRfvu7n5qd+w0QkltGPonVCtPJZaDy0Dy9DUPzUZBmGx/uxuz/3M xqRDBRU9eajAhpEcrUQM7QlAzDkV5axUvNISH27pHqrjsyrseCPw+CNoi6eCXBEXDxGL lrVA== X-Gm-Message-State: AO0yUKWl7YA9VDNzaK6wC7bwFMmvnvJ3Lu49BMtkq99aRsd92J03lUeb IHlxFsnYIrAX6qE0Z4Zq4zyu1A== X-Google-Smtp-Source: AK7set8PKIRd72z9/UuyBVH8cin+ES99J/ZpkTTo9AKpqnbFqTCWzYzgZiDEH2cYJ9q5Jc0kJo82kQ== X-Received: by 2002:a17:906:fe4c:b0:906:4739:d73e with SMTP id wz12-20020a170906fe4c00b009064739d73emr5828323ejb.2.1678556197023; Sat, 11 Mar 2023 09:36:37 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:36:36 -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 7/7] usb: misc: usb251xb: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:36:24 +0100 Message-Id: <20230311173624.263189-7-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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/usb/misc/usb251xb.c:223:35: error: ‘usb2517i_data’ defined but not used [-Werror=unused-const-variable=] drivers/usb/misc/usb251xb.c:215:35: error: ‘usb2517_data’ defined but not used [-Werror=unused-const-variable=] drivers/usb/misc/usb251xb.c:207:35: error: ‘usb2514bi_data’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/usb/misc/usb251xb.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c index e3abe67a155d..c36e04aa5a82 100644 --- a/drivers/usb/misc/usb251xb.c +++ b/drivers/usb/misc/usb251xb.c @@ -377,7 +377,6 @@ static int usb251xb_connect(struct usb251xb *hub) return err; } -#ifdef CONFIG_OF static void usb251xb_get_ports_field(struct usb251xb *hub, const char *prop_name, u8 port_cnt, bool ds_only, u8 *fld) @@ -626,13 +625,6 @@ static const struct of_device_id usb251xb_of_match[] = { } }; MODULE_DEVICE_TABLE(of, usb251xb_of_match); -#else /* CONFIG_OF */ -static int usb251xb_get_ofdata(struct usb251xb *hub, - const struct usb251xb_data *data) -{ - return 0; -} -#endif /* CONFIG_OF */ static void usb251xb_regulator_disable_action(void *data) { @@ -754,7 +746,7 @@ MODULE_DEVICE_TABLE(i2c, usb251xb_id); static struct i2c_driver usb251xb_i2c_driver = { .driver = { .name = DRIVER_NAME, - .of_match_table = of_match_ptr(usb251xb_of_match), + .of_match_table = usb251xb_of_match, .pm = &usb251xb_pm_ops, }, .probe_new = usb251xb_i2c_probe,