From patchwork Sun Mar 12 13:26:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171475 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3A74FC6FA99 for ; Sun, 12 Mar 2023 13:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Rb0USHPTbYQPze5b8aXP+mhVvoI1x7zGphAvIgyBF1k=; b=ZevSnGS/MN51gg 6EPPQSey+WraYWDuiKvBgU2Ymj6DxIoJCWy8cFqcuPmtoYWvfCh353xYBnyzCx4Y7qV8mqCQWyafr 3soCAGKYJT4MashxlMi/W263bEGlG7nH+0224C8ISmWi6yiUSzuAKSawCZkOWCFZ0KtpZjuPy0yBR IedsLCzmm4epjxqKl2umCRlzqA/bpL7FxL1u3jL+TJc3DMxL7bRC+dSCUwl0BKrvWRgUml78QBMtJ z10W3CF3RLJd4fjhLmXTBL3hSrmaF/TFzOUMLMYtzr5HBycpSkwJ4c0KK4g38VKJXDI6DIKMiBPqj fzb3PFnNQMf1uFpH+raQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbLpP-002RUZ-1v for linux-phy@archiver.kernel.org; Sun, 12 Mar 2023 13:33:35 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbLiI-002OOl-CL for linux-phy@lists.infradead.org; Sun, 12 Mar 2023 13:26:16 +0000 Received: by mail-ed1-x530.google.com with SMTP id ek18so7449586edb.6 for ; Sun, 12 Mar 2023 06:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627574; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ITdNXxUWkF6uRaUdJ5IgYqC8UK9xSTmThRmPvwuIK4w=; b=VCrJ+qsSPBH5uKmgym7NlQb7cxZcgibysEmTXreMFCVhGpU1BW661nlYfvcE1QKoPe PTAbvMfrdsBBSoOmNA5IVOVYh3JqniNbmkVLZEq28AsSXeILemDcaIxgKnsazuwNb1HW k10IuwSnJ7MF+EM2wm6ArgyUTDITDabRjNvnd0M3aaZX3BM/zMUYA10GkdID+H3CkMba B4+pwXPddXRMUv6aJa/rQSTT+1odIcqR03u/6BRpqUG1aAhRWo7iMzIj/DuqPJylQ51G DcuaM3wp3a7yb8AugJnFUIWO3nrDq+W7gy80ZgO9Yh3qka8eraGzE89zdw8x7IvmAzOx lXOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627574; 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=ITdNXxUWkF6uRaUdJ5IgYqC8UK9xSTmThRmPvwuIK4w=; b=3hSBcRthYPrGtMmpeaDKxlRnivh28LJj8SKloH/uKFpaqAwwLEn52QQkYAIGW+xfIg jZoWVeC1ZFfHmjDylSnK9L6wbnpjRvzL61uJlmgs6IC/WMFubnbLFwu/aGuY1Qa5/juI E05hCOcXHsFs3JZ6Bq6f6d3ErDffS2Ou5HE0DRjHKIIDrsEOkTAGZCqxeW+7sqhCKdqv 85zW9w2a8BGIUuoaZMlJ0mWREcCl4fToMzOBDxfV1uqKaAqv6KdfjAl8P8mBnUe/Iw80 l0eyWP3LAWokOMOuMq4o+Tusa2m2cqoPyhFdcgfe35aKT+Vq+pf7/Y0s4DFjAgXoiT++ PW/w== X-Gm-Message-State: AO0yUKVqW23xJG25ffkYbmu/7RgvYMdT8mF4hYQ8wu9ZwZ3tfppueAmD F4mS/RAYGDipSndndkCcMNrCUFCMubCGZFNC5hI= X-Google-Smtp-Source: AK7set8bE2760pBILj5OUq4ILGA4e9br0TgbpRz+o+vtP+zh4KWxYSBNTi0m82wkO/0GbxdMjLQTOg== X-Received: by 2002:aa7:ccd5:0:b0:4ac:b69a:2f06 with SMTP id y21-20020aa7ccd5000000b004acb69a2f06mr31618334edt.0.1678627573805; Sun, 12 Mar 2023 06:26:13 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id bx18-20020a0564020b5200b004fb542dd8cdsm914001edb.29.2023.03.12.06.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:13 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] phy: marvell: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:26:10 +0100 Message-Id: <20230312132611.352654-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230312_062614_564798_B735A507 X-CRM114-Status: GOOD ( 13.72 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.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). This also fixes !CONFIG_OF error: drivers/phy/marvell/phy-pxa-28nm-hsic.c:192:34: error: ‘mv_hsic_phy_dt_match’ defined but not used [-Werror=unused-const-variable=] drivers/phy/marvell/phy-pxa-28nm-usb2.c:324:34: error: ‘mv_usbphy_dt_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/marvell/phy-pxa-28nm-hsic.c | 2 +- drivers/phy/marvell/phy-pxa-28nm-usb2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/marvell/phy-pxa-28nm-hsic.c b/drivers/phy/marvell/phy-pxa-28nm-hsic.c index c5c100563f55..eff6dd6b2dd0 100644 --- a/drivers/phy/marvell/phy-pxa-28nm-hsic.c +++ b/drivers/phy/marvell/phy-pxa-28nm-hsic.c @@ -199,7 +199,7 @@ static struct platform_driver mv_hsic_phy_driver = { .probe = mv_hsic_phy_probe, .driver = { .name = "mv-hsic-phy", - .of_match_table = of_match_ptr(mv_hsic_phy_dt_match), + .of_match_table = mv_hsic_phy_dt_match, }, }; module_platform_driver(mv_hsic_phy_driver); diff --git a/drivers/phy/marvell/phy-pxa-28nm-usb2.c b/drivers/phy/marvell/phy-pxa-28nm-usb2.c index 0b390b9d2ae1..1b2107f80f3a 100644 --- a/drivers/phy/marvell/phy-pxa-28nm-usb2.c +++ b/drivers/phy/marvell/phy-pxa-28nm-usb2.c @@ -331,7 +331,7 @@ static struct platform_driver mv_usb2_phy_driver = { .probe = mv_usb2_phy_probe, .driver = { .name = "mv-usb2-phy", - .of_match_table = of_match_ptr(mv_usbphy_dt_match), + .of_match_table = mv_usbphy_dt_match, }, }; module_platform_driver(mv_usb2_phy_driver); From patchwork Sun Mar 12 13:26:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171476 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 89875C6FD1F for ; Sun, 12 Mar 2023 13:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=agdwAyyP9jKqGYh/5LfQJ7fKLUto7VWuXYXS9mZ/Bq4=; b=MfS74D7mPnb7Gb ZAjVfYfZzKYfyHShvaPBrhT8f9OQOdT8sttS8KclbLdpLAka5vizaT54dipErEPh9q9i8Ks+3hDiS d1x02km517zDO7vyx3ASDhgvis9jBNteWWcJYhsS1w9Fy86+e0FYpwXmIgf6LrmS1cmGhi3RGj6yh auq22+OFXwvKYVnHOEqHdxDxMuewgzrZq+1OBG0CwNgyf8dgr0EKKX4Lnd+OkLV/ZrzziDBuCUAh4 UPDDtdhvSuIn1JWJYly6nB4y+HLZkMwKpwjQ9hYyuXns33E8Bm29bPMmhvDmsn0T8FmqbTrmw3OPm jIOFF4qMtopfSX+af+1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbLpP-002RV2-NY for linux-phy@archiver.kernel.org; Sun, 12 Mar 2023 13:33:35 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbLiL-002OOl-Pa for linux-phy@lists.infradead.org; Sun, 12 Mar 2023 13:26:19 +0000 Received: by mail-ed1-x530.google.com with SMTP id ek18so7450059edb.6 for ; Sun, 12 Mar 2023 06:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627577; 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=XAl0hh7MzBDS1djmzZy8N/npw+zryqsJ+XNFJQjmF0w=; b=NbNR5LANsOffWh56sNJG+hwiy7VGzuNCABzva167Q0RbCyOOlSRkTigycaEPPMZQ+j yKxAEuMyavYA/FTZgJLusXKwTy8Q+1qEZGlPV1F/kfqymhHI0c4x2ha+ZVLVqGHuljmy k8Dw4RrYsz3kyUgEONOWMEsfUBGASlwhk9cm9/oa2lybveRyTZU+abzLQ/YcRplr8xKT ShIsHFoiK2KXYbi+XG9qtHZwhlZU+JaEvdGsp5i5cKF+ikwG8NFN1DbWfxRJQqc0BZUS i3UhWbreWeFsGJ15s9/TtrK7bn0gBCDnDZVMRO2oJ4gZo/TyAXshW7xX6YmT7CNjvZuh DNvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627577; 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=XAl0hh7MzBDS1djmzZy8N/npw+zryqsJ+XNFJQjmF0w=; b=rvfy5jM19L6amxawHGdAGnu1Dd4DcuPOGtiqG4Sj/NQkfwbS7RqEHdgYKAzoV6BHor pwOS4ObwgXvcj/jDjoD08PRorGM7l9CgLVPryExMcwrfCbT5iF3MB2qpNZtHnwSuG/mo tzG0jFaDOC8BV/kEcmTvScAUfvaYHxkXb83h5lHMVtXfH0UkSW52dVjrC5rdJEkQpRgE 34xmh9hF1nXIzV5icf7YbQtIXwclU1EtbmzWn1N9dn9kpqF/lH5H4gOQEo8QDTEiAn8t 5Fc6r9WsoKZcQOr0BvGPE3VcGA+IgO53iGqGrTEh28bfoBRwgdTEYmfpree/NG8pfxLo OQBQ== X-Gm-Message-State: AO0yUKV0Fzs8cXqi5581ZKNOUN/oa+Y3WXRrSMTWZ914TBQdDCX9JzFr 8ir0JN1xPnnvowiCgZQ8HrVldA== X-Google-Smtp-Source: AK7set9b6H6pNkwZXz/fNyF5cFK7Sqnt4oNSojngkffOCxfXtJlfhWq5XovH4sELe1y6ak+kksGPhw== X-Received: by 2002:aa7:dad1:0:b0:4fa:d2b1:9176 with SMTP id x17-20020aa7dad1000000b004fad2b19176mr3497860eds.22.1678627577275; Sun, 12 Mar 2023 06:26:17 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id bx18-20020a0564020b5200b004fb542dd8cdsm914001edb.29.2023.03.12.06.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:26:17 -0700 (PDT) From: Krzysztof Kozlowski To: Vinod Koul , Kishon Vijay Abraham I , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] phy: st: spear: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:26:11 +0100 Message-Id: <20230312132611.352654-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230312132611.352654-1-krzysztof.kozlowski@linaro.org> References: <20230312132611.352654-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230312_062618_379323_92154438 X-CRM114-Status: GOOD ( 14.39 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.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). This also fixes !CONFIG_OF error: drivers/phy/st/phy-spear1310-miphy.c:172:34: error: ‘spear1310_miphy_of_match’ defined but not used [-Werror=unused-const-variable=] drivers/phy/st/phy-spear1340-miphy.c:182:34: error: ‘spear1340_miphy_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/phy/st/phy-spear1310-miphy.c | 2 +- drivers/phy/st/phy-spear1340-miphy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/st/phy-spear1310-miphy.c b/drivers/phy/st/phy-spear1310-miphy.c index 8871cd186304..292413db7da4 100644 --- a/drivers/phy/st/phy-spear1310-miphy.c +++ b/drivers/phy/st/phy-spear1310-miphy.c @@ -246,7 +246,7 @@ static struct platform_driver spear1310_miphy_driver = { .probe = spear1310_miphy_probe, .driver = { .name = "spear1310-miphy", - .of_match_table = of_match_ptr(spear1310_miphy_of_match), + .of_match_table = spear1310_miphy_of_match, }, }; diff --git a/drivers/phy/st/phy-spear1340-miphy.c b/drivers/phy/st/phy-spear1340-miphy.c index ed4d0e2df053..c1d9ffa5a311 100644 --- a/drivers/phy/st/phy-spear1340-miphy.c +++ b/drivers/phy/st/phy-spear1340-miphy.c @@ -279,7 +279,7 @@ static struct platform_driver spear1340_miphy_driver = { .driver = { .name = "spear1340-miphy", .pm = &spear1340_miphy_pm_ops, - .of_match_table = of_match_ptr(spear1340_miphy_of_match), + .of_match_table = spear1340_miphy_of_match, }, };