From patchwork Mon Sep 30 04:59:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2962541 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AC7DCBFF0B for ; Mon, 30 Sep 2013 04:59:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C12252026F for ; Mon, 30 Sep 2013 04:59:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08CEB20254 for ; Mon, 30 Sep 2013 04:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750838Ab3I3E7p (ORCPT ); Mon, 30 Sep 2013 00:59:45 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:37500 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802Ab3I3E7p (ORCPT ); Mon, 30 Sep 2013 00:59:45 -0400 Received: by mail-pa0-f41.google.com with SMTP id bj1so5361100pad.0 for ; Sun, 29 Sep 2013 21:59:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QyVfPzBoC9cpvfjC0CTT3Yv89JaPoBViVChtGlMnXq4=; b=mbdxwKTiovwgU7Y77ruCVehVA/ikOP/UP5LkAWJ658ypuV8D4qLAYEIT8Vw/sxmsQ+ 8GYZBoIbhvQPV0erU3JKLdMbhtkmT07Ha9ar4BISS0So1BIHxF/JNEENYUqu1NU6s+Sh L9y9OIurEBH9JVFdFm/6XsB90lju0PDQM+UHDx0ncrQ/R/nddu8vlGbyvMssGWeeBa9g rci8qvtdsrvIHGdUfTaBpGADr5xHDXAA1nIPOCa6/hp/lKXP/L6jRBJIicsyV1atUPMu 3QhRWUbH/sWQt64+NO5AyqnwCnsvwozS/IXF+8p0vmqcJe/e2uGmh02IzD1BGCBDdukd Em3Q== X-Gm-Message-State: ALoCoQkA7oLMk75cykDH6M5JRvga58yU0yU8xevFAT3u/SoY4a0geWoIle4h5p2l9BLvLcz/5G6E X-Received: by 10.68.98.101 with SMTP id eh5mr21639997pbb.65.1380517184708; Sun, 29 Sep 2013 21:59:44 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id bt1sm24150916pbb.2.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Sep 2013 21:59:44 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, tgih.jun@samsung.com, jh80.chung@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 1/3] mmc: davinci: Remove redundant of_match_ptr Date: Mon, 30 Sep 2013 10:29:31 +0530 Message-Id: <1380517173-10537-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The data structure of_match_ptr() protects is always compiled in. Hence of_match_ptr() is not needed. Signed-off-by: Sachin Kamat --- drivers/mmc/host/davinci_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index e9fa87d..39b311e 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1193,7 +1193,7 @@ static struct davinci_mmc_config struct device_node *np; struct davinci_mmc_config *pdata = pdev->dev.platform_data; const struct of_device_id *match = - of_match_device(of_match_ptr(davinci_mmc_dt_ids), &pdev->dev); + of_match_device(davinci_mmc_dt_ids, &pdev->dev); u32 data; np = pdev->dev.of_node; @@ -1484,7 +1484,7 @@ static struct platform_driver davinci_mmcsd_driver = { .name = "davinci_mmc", .owner = THIS_MODULE, .pm = davinci_mmcsd_pm_ops, - .of_match_table = of_match_ptr(davinci_mmc_dt_ids), + .of_match_table = davinci_mmc_dt_ids, }, .remove = __exit_p(davinci_mmcsd_remove), .id_table = davinci_mmc_devtype,