From patchwork Tue Dec 24 08:14:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 182432 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp1393859ili; Tue, 24 Dec 2019 00:16:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw/qq+/I1W+kuZySVHBBAoZz2OtZTkHaTDvwJ08cun2dtQXeNIzM6f72moDzqBkJmBn7Vju X-Received: by 2002:a05:6830:22e6:: with SMTP id t6mr38866845otc.244.1577175364454; Tue, 24 Dec 2019 00:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577175364; cv=none; d=google.com; s=arc-20160816; b=LY6DQnp86SyJ9A3zJJnmEdDq1tzaw7X9SWLQjw9RDPCKHqPxY3kXb1A44RVzngntWP kYz8tL09WriHPzzLlZYnI+woYgj0ugut15xi2fwoKHLVuPeD6DNp1XIUTsdMvGMNcMKH t047FsVAlLyfS28/0MSISI4ICY7+YRA7z60LE++8BPjeXlBeePhZuZZc1GSU1LkgGzSt 17g6Hd41ciBHSFXwkUEjYE2taAa8wCsm+x2quqSyw5KHBgsJv+0jzk/EbzYZTUYpT+No vc4hAAvRc7Zqp+Cj1+ivaQXVuGFOQeZDRPj6G1qusg5aC1nZ+yOf0eG5zpFk19/fgV7M VqUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=NbmBvDtMJ9z3Td8I6VubahSRd9ne5gs2UkZ7H3zze/8=; b=Ev0fwz7RA1bDy6pqtYeiAW0XwpacyYAM0fEaTboGbLPpT/sTKrbWwlqb7iVYXP+95z z/HhhaH4RR16uOK1LGWnLi7sYIVMcXsd81U8vP07Rmyi85qMIfuj5apEU28KT4BXAHwn G5gBRTK0ArqD7/ccsDrMo5fkdTxCftKj4g/CxU0v2M+CpZsd6m25hzaZrVdg2Sc3WyH1 RDiOoKKIhaKMVMNcXbBlzDXHW++nff1jQLWbzxWilEI0wuKhfikeq751Lio6ajkF7ore PbD2x5uSoCD5DRBYQnp4aB2XmbOmDyvq6SwGJypTHi3CjSi0hU4tWWgjleZjknDNc7eI 1zrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=w1D1o9lL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si10884637oia.277.2019.12.24.00.16.04; Tue, 24 Dec 2019 00:16:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=w1D1o9lL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726245AbfLXIQD (ORCPT + 27 others); Tue, 24 Dec 2019 03:16:03 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:61760 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfLXIQC (ORCPT ); Tue, 24 Dec 2019 03:16:02 -0500 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id xBO8F6tO002467; Tue, 24 Dec 2019 17:15:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com xBO8F6tO002467 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1577175308; bh=NbmBvDtMJ9z3Td8I6VubahSRd9ne5gs2UkZ7H3zze/8=; h=From:To:Cc:Subject:Date:From; b=w1D1o9lLd17YUs9iR6sMAJ70Ko/YIzdjEGoKti9JQCdALk56d5wqxG1STTEJUkUeV OvRF13UWwZZf8xS6CXgiOg+/jwFaX01jDqcRYaZegKpO4OalJyND/FAalfnQPVDv2y 7v5hvfSt6B2jVx2SdXBZ6WSY8dfCN9QcFYrNyG+6SK20UV82gTdius2NerU2XrkCH8 dDi6g/PE0uyrpptvh/YijOR5bixz6F6b9gVRbHQ3y5Awhsp856QkkWkfWZl+jMtVGP hT2nXixKIw+I0oY/lXK0tAZgkn8cwzuD1Ak07HI0atUmHZDT3a/mEkh27vroNROc9Z TbrVy0Ofau6Sg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Will Deacon , Robin Murphy , linux-arm-kernel@lists.infradead.org, Joerg Roedel , iommu@lists.linux-foundation.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] iommu/arm-smmu-v3: remove useless of_match_ptr() Date: Tue, 24 Dec 2019 17:14:59 +0900 Message-Id: <20191224081500.18628-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The CONFIG option controlling this driver, ARM_SMMU_V3, depends on ARM64, which select's OF. So, CONFIG_OF is always defined when building this driver. of_match_ptr(arm_smmu_of_match) is the same as arm_smmu_of_match. Signed-off-by: Masahiro Yamada --- drivers/iommu/arm-smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index effe72eb89e7..d9e0d9c19b4f 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -3698,7 +3698,7 @@ static const struct of_device_id arm_smmu_of_match[] = { static struct platform_driver arm_smmu_driver = { .driver = { .name = "arm-smmu-v3", - .of_match_table = of_match_ptr(arm_smmu_of_match), + .of_match_table = arm_smmu_of_match, .suppress_bind_attrs = true, }, .probe = arm_smmu_device_probe,