From patchwork Mon Sep 30 03:34:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 278908 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3D1B32C00C8 for ; Mon, 30 Sep 2013 13:34:42 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754543Ab3I3Dek (ORCPT ); Sun, 29 Sep 2013 23:34:40 -0400 Received: from mail-pb0-f42.google.com ([209.85.160.42]:52378 "EHLO mail-pb0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071Ab3I3Dek (ORCPT ); Sun, 29 Sep 2013 23:34:40 -0400 Received: by mail-pb0-f42.google.com with SMTP id un15so5022883pbc.1 for ; Sun, 29 Sep 2013 20:34:39 -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=o95fqABpadvJuTRDBbvYyPJ3ivjgyR7jhVvThVvrqUA=; b=ZWKqmlhL3zKoPiuI2cM6UNtTBCP9HwT+Vro9hUzn5Yk+4hryzKKs6LqBY+09wJtoyJ EjcYFGH7WbJ606oFngzSUovgqD9o1XGs7LLk40wiv+Y1X1YLopJplaBd+ei2b0ES/8VV mph7Mw3pMg127uV3zMObl/Xjdrq0T6xox9eWMwDgCcnMirtiWyZTACkUqOuu5AMioDso rlPsh6AGyCy45qfzqdlUia/uSeBVUpKV2Mx9H3EB8OWxeW3/jvp/0JB5i350Od0mhcrt 5SSTb059KDuGnqUx5YI2PY+6HK3BcJsF1Li8sHMyMuMMhn0nNrGqomfRYzZezbT8nPYw Z8iw== X-Gm-Message-State: ALoCoQnRMYJN916osOT+iHUIMO69ZSzMi7oycjLoNNssDxslXl2052ix0lCcJ9kKplpsHUnpF20b X-Received: by 10.66.250.138 with SMTP id zc10mr26068729pac.72.1380512079894; Sun, 29 Sep 2013 20:34:39 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fy4sm23741898pbb.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Sep 2013 20:34:39 -0700 (PDT) From: Sachin Kamat To: linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, sachin.kamat@linaro.org, Sekhar Nori Subject: [PATCH 2/2] i2c: davinci: Remove redundant of_match_ptr Date: Mon, 30 Sep 2013 09:04:26 +0530 Message-Id: <1380512066-23681-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380512066-23681-1-git-send-email-sachin.kamat@linaro.org> References: <1380512066-23681-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org The data structure of_match_ptr() protects is always compiled in. Hence of_match_ptr() is not needed. Signed-off-by: Sachin Kamat Cc: Sekhar Nori --- drivers/i2c/busses/i2c-davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 132369f..85e8ad6 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -795,7 +795,7 @@ static struct platform_driver davinci_i2c_driver = { .name = "i2c_davinci", .owner = THIS_MODULE, .pm = davinci_i2c_pm_ops, - .of_match_table = of_match_ptr(davinci_i2c_of_match), + .of_match_table = davinci_i2c_of_match, }, };