From patchwork Thu May 23 04:51:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2604761 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C8ECCDFB78 for ; Thu, 23 May 2013 05:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184Ab3EWFFG (ORCPT ); Thu, 23 May 2013 01:05:06 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:37251 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124Ab3EWFFF (ORCPT ); Thu, 23 May 2013 01:05:05 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl1so682157pab.20 for ; Wed, 22 May 2013 22:05:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=9GM+S8co+eqmB/FZCeujbj80tbzyO8iXfPxSS4QMdbg=; b=BDOLHUYen3SnbyDhOQGHMuz8QXpml9qcde5MlAgpz0REGCqMWujscsI7Xt/yfEC5Nd n1lXL0CfMXCKXzwbynIeFhDIRIkoIN10AW7kDL2bhY0ycUkbwUb/UHg3U111f5vqEEA8 cGoBQtbCY+8AwvOlL+TLBvXLgjQTv1CeVEotj8ojNnoQnMOWarbKklvSbIIL+T3GOF3s /WCKNOevRieHd9h1zCKvKjKGHLsw20BbBoEE2CPevlrPUtvLChQYXsF9WDZjN8SaM7oE mWiIQPJs2UJsapIEF9tI8gT2TymQxiVCWZNkut8YSqIl+KMr1L/RlgSnJFNqevUAVlQ8 LeYA== X-Received: by 10.66.145.67 with SMTP id ss3mr11692896pab.18.1369285503987; Wed, 22 May 2013 22:05:03 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ih1sm10110610pbb.44.2013.05.22.22.05.01 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 22:05:03 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sylvester.nawrocki@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/2] [media] exynos-gsc: Remove redundant use of of_match_ptr macro Date: Thu, 23 May 2013 10:21:18 +0530 Message-Id: <1369284679-14716-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmMRP+BkcjTePH/Tg0tpDlMsHUV/YIOB9LsQPDqVKJ0lFkpTr8X9edxnXeO8/iNRWBHN2XP Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This is a DT only driver and exynos_gsc_match is always compiled in. Hence of_match_ptr is unnecessary. Signed-off-by: Sachin Kamat --- drivers/media/platform/exynos-gsc/gsc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 33b5ffc..559fab2 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -988,7 +988,7 @@ static void *gsc_get_drv_data(struct platform_device *pdev) if (pdev->dev.of_node) { const struct of_device_id *match; - match = of_match_node(of_match_ptr(exynos_gsc_match), + match = of_match_node(exynos_gsc_match, pdev->dev.of_node); if (match) driver_data = (struct gsc_driverdata *)match->data;