From patchwork Sat Sep 28 12:28:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2957731 Return-Path: X-Original-To: patchwork-linux-input@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 6843DBFF0B for ; Sat, 28 Sep 2013 12:28:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A769920345 for ; Sat, 28 Sep 2013 12:28:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1E44201FE for ; Sat, 28 Sep 2013 12:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036Ab3I1M2l (ORCPT ); Sat, 28 Sep 2013 08:28:41 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:61851 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754064Ab3I1M20 (ORCPT ); Sat, 28 Sep 2013 08:28:26 -0400 Received: by mail-pd0-f175.google.com with SMTP id q10so3687586pdj.6 for ; Sat, 28 Sep 2013 05:28:26 -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:in-reply-to :references; bh=4oiK8Y8rX7rKrQuG1K5JP4Q5oFJfYdTV1YRm+fkYyME=; b=hfvFgQ8aM4F8pO8tNpebvzlELZCGgXztLyu65JLy7wha4yyGPFWEzmGr5/NvihU1Ej EsnKn6MLAoRpNsb+gpWddBT6XElpG69+daUjel1Nzlw9zyehsSDoN8Dhe2+suqjLt6+I 8nhhfDEcoKzQKtpQ9UyYp2oANZ7Bmcj5t0cs6OhCMAK+rJhjBSZmAlMsStnMuV2uTbch GVyjHu2tALcMGV09VCCaXSywWXhAf0N0yCqOLAaoLz19A3PByUhBM3i8ioefLsAs0kCM jPtkyFKLKPp6qIx8THgTgb1YrmbHwr0/3IBVJh9ftIJF0yeBDnX+J+i4JldZwwNdWFE6 sDwQ== X-Gm-Message-State: ALoCoQkRjudq8/zWCoIYDyhz3znWo0T3+Bla4vd2UAMOMiLIb2p8bEmyghRRB91Hu+BUgRaqaJoG X-Received: by 10.67.30.164 with SMTP id kf4mr17068808pad.13.1380371306455; Sat, 28 Sep 2013 05:28:26 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ed3sm14833051pbc.6.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Sep 2013 05:28:25 -0700 (PDT) From: Sachin Kamat To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 3/6] Input: tegra-kbc - Remove redundant of_match_ptr Date: Sat, 28 Sep 2013 17:58:11 +0530 Message-Id: <1380371294-10289-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380371294-10289-1-git-send-email-sachin.kamat@linaro.org> References: <1380371294-10289-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-9.3 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/input/keyboard/tegra-kbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c index 9cd20e6..8508879 100644 --- a/drivers/input/keyboard/tegra-kbc.c +++ b/drivers/input/keyboard/tegra-kbc.c @@ -614,7 +614,7 @@ static int tegra_kbc_probe(struct platform_device *pdev) unsigned int keymap_rows; const struct of_device_id *match; - match = of_match_device(of_match_ptr(tegra_kbc_of_match), &pdev->dev); + match = of_match_device(tegra_kbc_of_match, &pdev->dev); kbc = devm_kzalloc(&pdev->dev, sizeof(*kbc), GFP_KERNEL); if (!kbc) {