From patchwork Thu May 23 04:51:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2604771 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 07B9B40077 for ; Thu, 23 May 2013 05:05:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751206Ab3EWFF2 (ORCPT ); Thu, 23 May 2013 01:05:28 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35600 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124Ab3EWFFH (ORCPT ); Thu, 23 May 2013 01:05:07 -0400 Received: by mail-pa0-f45.google.com with SMTP id lj1so2560705pab.4 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=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=HX685nB1QWJ0kq4m8LpMUDrkDABuqeIECqSUUHS4Qp4=; b=TfVnks08mt96ozsKb+FnDksDfsplCeq4nNekjT6exIbNXG5WyqD3mSAvMTf016gkjD DZXN6BrM9OczZX02uA2mhLXZlTwN/RfzPDVGzBYYLdILinC/q8l1rb806R/TiHpzMZb0 i5sqLf/Y19sMZz8sUVxl/YZ6/Kxa7oZzq5jMhuZ7BUQ7jx6Whe6K7C3FCtI9VysDGjjd wjvyO7I5KBv8y2sNqQUNPrlkLApvGT1ByURh70LwsIkdTNeLNXm3GwFwch3S32GG867O UCzpoVmOsTpDA9eI3qAUZZEf3pklh30ppyy80iNnbA4dCzphIV3ihdESL8GsP+5PwWDO xEFQ== X-Received: by 10.66.157.130 with SMTP id wm2mr11487387pab.156.1369285507147; Wed, 22 May 2013 22:05:07 -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.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 May 2013 22:05:06 -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, Kamil Debski Subject: [PATCH 2/2] [media] s5p-mfc: Remove redundant use of of_match_ptr macro Date: Thu, 23 May 2013 10:21:19 +0530 Message-Id: <1369284679-14716-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369284679-14716-1-git-send-email-sachin.kamat@linaro.org> References: <1369284679-14716-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkspI9/dPTHS7amPL6MH6hv2tgTUsIdv9v24uHLDgkgaCHQbwQpL+JhderpO0AMZc7RNBJI Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 'exynos_mfc_match' is always compiled in. Hence of_match_ptr is unnecessary. Signed-off-by: Sachin Kamat Cc: Kamil Debski --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index 01f9ae0..5d0419b 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c @@ -1426,7 +1426,7 @@ static void *mfc_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_mfc_match), + match = of_match_node(exynos_mfc_match, pdev->dev.of_node); if (match) driver_data = (struct s5p_mfc_variant *)match->data;