From patchwork Wed Jan 7 07:41:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olliver Schinagl X-Patchwork-Id: 5583101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D84C69F357 for ; Wed, 7 Jan 2015 07:55:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D4992025B for ; Wed, 7 Jan 2015 07:55:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4B77420263 for ; Wed, 7 Jan 2015 07:55:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y8lQD-0005CC-0V; Wed, 07 Jan 2015 07:52:53 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y8lFi-0004kN-JN for linux-arm-kernel@bombadil.infradead.org; Wed, 07 Jan 2015 07:42:02 +0000 Received: from 7of9.schinagl.nl ([88.159.158.68]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y8lFd-0005oW-Tp for linux-arm-kernel@lists.infradead.org; Wed, 07 Jan 2015 07:41:59 +0000 Received: from um-mba-140.fritz.box (a83-163-237-212.adsl.xs4all.nl [83.163.237.212]) by 7of9.schinagl.nl (Postfix) with ESMTPA id F16514D35C; Wed, 7 Jan 2015 08:41:32 +0100 (CET) From: Olliver Schinagl To: Maxime Ripard Subject: [PATCH v1] ARM:sunxi:sid: Make use of the of_match_ptr Date: Wed, 7 Jan 2015 08:41:08 +0100 Message-Id: <1420616468-3782-1-git-send-email-oliver+list@schinagl.nl> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150107_024158_061044_475D092D X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) Cc: Wolfram Sang , Olliver Schinagl , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Paul Gortmaker , Rob Herring , dev@linux-sunxi.org, Grant Likely , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Olliver Schinagl I probably have forgotten to use this macro for the of_match pointer, so this patch adds the of_match_ptr macro. Signed-off-by: Olliver Schinagl --- drivers/misc/eeprom/sunxi_sid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/eeprom/sunxi_sid.c b/drivers/misc/eeprom/sunxi_sid.c index 8385177..5a330d9 100644 --- a/drivers/misc/eeprom/sunxi_sid.c +++ b/drivers/misc/eeprom/sunxi_sid.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -146,7 +147,7 @@ static struct platform_driver sunxi_sid_driver = { .remove = sunxi_sid_remove, .driver = { .name = DRV_NAME, - .of_match_table = sunxi_sid_of_match, + .of_match_table = of_match_ptr(sunxi_sid_of_match), }, }; module_platform_driver(sunxi_sid_driver);