From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbcFFIc4 (ORCPT ); Mon, 6 Jun 2016 04:32:56 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34077 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbcFFIcs (ORCPT ); Mon, 6 Jun 2016 04:32:48 -0400 From: Thierry Reding To: Rob Herring , Frank Rowand Cc: Greg Kroah-Hartman , Russell King , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/22] drm/hdlcd: Use of_device_match() Date: Mon, 6 Jun 2016 10:31:54 +0200 Message-Id: <20160606083204.19760-13-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160606083204.19760-1-thierry.reding@gmail.com> References: <20160606083204.19760-1-thierry.reding@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding Use the common implementation rather than the driver-private variant. Signed-off-by: Thierry Reding --- drivers/gpu/drm/arm/hdlcd_drv.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c index 3422ca23cfaf..4fa93123802b 100644 --- a/drivers/gpu/drm/arm/hdlcd_drv.c +++ b/drivers/gpu/drm/arm/hdlcd_drv.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -429,11 +430,6 @@ static const struct component_master_ops hdlcd_master_ops = { .unbind = hdlcd_drm_unbind, }; -static int compare_of(struct device *dev, void *data) -{ - return dev->of_node == data; -} - static void release_of(struct device *dev, void *data) { of_node_put(data); @@ -466,7 +462,7 @@ static int hdlcd_probe(struct platform_device *pdev) } component_match_add_release(&pdev->dev, &match, release_of, - compare_of, port); + of_device_match, port); return component_master_add_with_match(&pdev->dev, &hdlcd_master_ops, match); -- 2.8.3