From patchwork Mon Jun 3 15:49:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 165605 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4643943ili; Mon, 3 Jun 2019 08:51:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGswRtpLMDp3qCvCpv6FV3r4x7c9pJlZ1AZpIOXmcBTeFDAg3xyJcxXdVc6a/ppmcIvnRT X-Received: by 2002:a17:902:b102:: with SMTP id q2mr21163317plr.149.1559577070968; Mon, 03 Jun 2019 08:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559577070; cv=none; d=google.com; s=arc-20160816; b=IhW0jrcRCr8GfYhV1ZTT7kSVvmvmRMjCDZjfhvAJKI6CnDFDUwPR1Vd8hAG7ZPNF4n u1sjm8e/ujL4n/1umIoJZrLXknt5jYSAwybdImvaCFT4mHz1LYrQ9qKoeBrNWVNYcnbX cY6URVdCNNn8LiOCQmsb7OX8VfTq36EO/QPo4wDI/BgKpaDrqcgigAxZ+th1xSDUE5wM gLXyggKaOphe6H2n+lzXQXYLcf5VeGj7ACXaY2Hklc1dq/NQkOLHADb+Bs0o07e2pF4t 38LJaBfAaa5XrI/JgG33ChxdHsmDw0YnIgPZUejI9JziEuR7qvqO2YFqPqX0/3pTLnDR 9uSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=pbBVeQ+LYHQfa1J4T3fyjlm8X7BKPo4hg3pHBxAZGYg=; b=Bg3DI35I1qCpEbW1fDscGydz3pfMzwMt2xbtIMeK24c3QV6yDrMoJDe6AH83gv6dv2 SNbaoTi83tw8yklyry+lyMwoWVctl9BFHbeR6Fn8I/gRDG45H87lT7ZTUtUzDYWAQ7xZ pq11DPSUDcs7bunL/zKThOALnyTIaaBDN2Jgyh9IccdnaD/ruaCaZBkjxV6NiImme0vb hHbTlWVFXP3K5VkWnc0HVicJlY2tO0Fr+0WOQM1MZShHFLoqy5QQSE98wWQ0o0EcIkWg kg3LDr+bJ/20+yzQUJb+CWtWErbOm/iGS4ECH8puDornQ7PfvdzxjyDaFvJ9Pe3EHpBG pJsw== ARC-Authentication-Results: i=1; mx.google.com; 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 g69si20591014plb.70.2019.06.03.08.51.10; Mon, 03 Jun 2019 08:51:10 -0700 (PDT) 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; 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 S1728435AbfFCPvJ (ORCPT + 30 others); Mon, 3 Jun 2019 11:51:09 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53556 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728373AbfFCPvG (ORCPT ); Mon, 3 Jun 2019 11:51:06 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3F0A715AB; Mon, 3 Jun 2019 08:51:06 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8CD0C3F246; Mon, 3 Jun 2019 08:51:04 -0700 (PDT) From: Suzuki K Poulose To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, rafael@kernel.org, suzuki.poulose@arm.com, Maarten Lankhorst , Maxime Ripard , dri-devel@lists.freedesktop.org, David Airlie , Daniel Vetter Subject: [RFC PATCH 05/57] drm: mipi_dsi: Use bus_find_device_by_of_node() helper Date: Mon, 3 Jun 2019 16:49:31 +0100 Message-Id: <1559577023-558-6-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> References: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to using the bus_find_device_by_of_node() helper. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: dri-devel@lists.freedesktop.org Cc: David Airlie Cc: Daniel Vetter Signed-off-by: Suzuki K Poulose --- drivers/gpu/drm/drm_mipi_dsi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c index 80b7550..4c5a397 100644 --- a/drivers/gpu/drm/drm_mipi_dsi.c +++ b/drivers/gpu/drm/drm_mipi_dsi.c @@ -93,11 +93,6 @@ static struct bus_type mipi_dsi_bus_type = { .pm = &mipi_dsi_device_pm_ops, }; -static int of_device_match(struct device *dev, void *data) -{ - return dev->of_node == data; -} - /** * of_find_mipi_dsi_device_by_node() - find the MIPI DSI device matching a * device tree node @@ -110,7 +105,7 @@ struct mipi_dsi_device *of_find_mipi_dsi_device_by_node(struct device_node *np) { struct device *dev; - dev = bus_find_device(&mipi_dsi_bus_type, NULL, np, of_device_match); + dev = bus_find_device_by_of_node(&mipi_dsi_bus_type, NULL, np); return dev ? to_mipi_dsi_device(dev) : NULL; }