From patchwork Wed Jan 15 05:55:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23215 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1CA1C202FA for ; Wed, 15 Jan 2014 05:59:35 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf1358442pbb.9 for ; Tue, 14 Jan 2014 21:59:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Fcfgc7W/rgMyM/I6x9xNIFfUEMupSVQPzmAAlXAE2Dw=; b=QDTMYak0W/dsjUs8gJJTfLCylnIJGcpyzglftIJUc+eEjfVUDr2MVA5gkLebJvRpzP g11ysyQYuyuj1/LrvYSKKApfPlQfRTGVk5tuZrHDoks3H7iMXhYB9kpAebX60jHtqu/C /ZlfUWwRlQBji2v8R6gJ/uplj24dynZmyDDHHJm4brfpXTNlBCgwEegYY5fTmJnpn7Bv WBRJVmd2cqQga+/zzSpTrmi1tCr1EWCpt9+d0MYI3VX31XzoGGHIdqCDElOvU0l/lDcg lkSMRtn3PMF94pIQnvyoiMMEN/VIy01SG5T7z9f6N64k4pN0cgrnetDUB2gGjmNjKqNm qlDw== X-Gm-Message-State: ALoCoQlszEWZ+8S8YP944U9O27LXRWf52uD+1WvB1SRxFq2SoNfn7yeKxO13XsuXbj/xdX0ei3WU X-Received: by 10.66.66.196 with SMTP id h4mr118607pat.22.1389765574366; Tue, 14 Jan 2014 21:59:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.228 with SMTP id f4ls524665qef.85.gmail; Tue, 14 Jan 2014 21:59:34 -0800 (PST) X-Received: by 10.58.255.233 with SMTP id at9mr378084ved.20.1389765574264; Tue, 14 Jan 2014 21:59:34 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id gx6si1156753vdc.141.2014.01.14.21.59.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so239132vcb.9 for ; Tue, 14 Jan 2014 21:59:34 -0800 (PST) X-Received: by 10.52.168.4 with SMTP id zs4mr114328vdb.59.1389765574200; Tue, 14 Jan 2014 21:59:34 -0800 (PST) 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.59.13.131 with SMTP id ey3csp251009ved; Tue, 14 Jan 2014 21:59:33 -0800 (PST) X-Received: by 10.66.220.198 with SMTP id py6mr369812pac.21.1389765573340; Tue, 14 Jan 2014 21:59:33 -0800 (PST) Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mx.google.com with ESMTPS id e8si2614316pac.343.2014.01.14.21.59.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.43 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.43; Received: by mail-pa0-f43.google.com with SMTP id rd3so684534pab.16 for ; Tue, 14 Jan 2014 21:59:33 -0800 (PST) X-Received: by 10.68.234.67 with SMTP id uc3mr365328pbc.27.1389765572956; Tue, 14 Jan 2014 21:59:32 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id kk1sm5423001pbd.22.2014.01.14.21.59.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:32 -0800 (PST) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: chris@printf.net, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 4/9] mmc: davinci: Remove redundant of_match_ptr Date: Wed, 15 Jan 2014 11:25:08 +0530 Message-Id: <1389765313-16744-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389765313-16744-1-git-send-email-sachin.kamat@linaro.org> References: <1389765313-16744-1-git-send-email-sachin.kamat@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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: , 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 d6153740b77f..5d4c5e0fba2f 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1192,7 +1192,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; @@ -1468,7 +1468,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,