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: 17105 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 82A9D25A0A for ; Thu, 23 May 2013 05:06:01 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id p13sf1109602vbe.8 for ; Wed, 22 May 2013 22:05:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=9GM+S8co+eqmB/FZCeujbj80tbzyO8iXfPxSS4QMdbg=; b=SPjOGVl3ES8ZNb+M2dAFdfVs9XA/JeQAW0TNo3qZeyTizKhOzZWX/j7OsrXxyVLcuq uADLdsrb5Ns3fHF1dU+K797gBavmhOcVmYNxzDyAxA8s+HHFlpD+I9chpjschsBStC6Q i1HLL0x1BaRGKmUlC7O54Igog+49ZMzhcOh+c/Oue3xOcBaXbp1O7TBGoUsuD7NwCDOE NcH6HdvBW9K/AFlLnehBt+F7Pw/V1fSF1eq0Lu9UkbqSGPyWqibkm+g14V3T8qWDAIuE JzbIZ6oBhaW658HTiczfCzfZiZuBYoxrL/y0aEr5y2Le/xB1Y1KEmpbV193jxU4zDytH CSwQ== X-Received: by 10.224.200.202 with SMTP id ex10mr5517272qab.8.1369285506912; Wed, 22 May 2013 22:05:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.102 with SMTP id a6ls1246422qep.59.gmail; Wed, 22 May 2013 22:05:06 -0700 (PDT) X-Received: by 10.52.21.52 with SMTP id s20mr3454095vde.62.1369285506580; Wed, 22 May 2013 22:05:06 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id tn5si5347332vdc.39.2013.05.22.22.05.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 22:05:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ha11so1866785vcb.35 for ; Wed, 22 May 2013 22:05:06 -0700 (PDT) X-Received: by 10.220.246.8 with SMTP id lw8mr4123208vcb.8.1369285506162; Wed, 22 May 2013 22:05:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.126.138 with SMTP id c10csp31760vcs; Wed, 22 May 2013 22:05:05 -0700 (PDT) X-Received: by 10.67.14.70 with SMTP id fe6mr11305966pad.195.1369285504681; Wed, 22 May 2013 22:05:04 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id wv10si5148775pbc.191.2013.05.22.22.05.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 22:05:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id z11so2486856pdj.16 for ; Wed, 22 May 2013 22:05:04 -0700 (PDT) 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: ALoCoQl3jJeVzmnraJQwY48jQTHcU0NbtDt8Nz4d6iGI0oFeuT2064V1fFVDJhhsSqWXlIZxQtfp X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;