From patchwork Thu Aug 16 10:44:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 1330661 Return-Path: X-Original-To: patchwork-spi-devel-general@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by patchwork2.kernel.org (Postfix) with ESMTP id 99801DFB34 for ; Thu, 16 Aug 2012 10:45:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1T1xZP-0006TP-J8; Thu, 16 Aug 2012 10:44:55 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1T1xZO-0006TG-Vw for spi-devel-general@lists.sourceforge.net; Thu, 16 Aug 2012 10:44:54 +0000 X-ACL-Warn: Received: from mx1.zhaw.ch ([160.85.104.50]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1T1xZN-0003qm-Is for spi-devel-general@lists.sourceforge.net; Thu, 16 Aug 2012 10:44:54 +0000 Received: from mx1.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4BF914C68; Thu, 16 Aug 2012 12:44:47 +0200 (CEST) Received: from fermion.zhaw.ch (inst-232.156.zhaw.ch [160.85.232.156]) by mx1.zhaw.ch (Postfix) with ESMTP id 156EA2612; Thu, 16 Aug 2012 12:44:45 +0200 (CEST) From: Tobias Klauser To: Grant Likely , Mark Brown Subject: [PATCH] spi: spi-xilinx: Pass NULL to platform_set_drvdata Date: Thu, 16 Aug 2012 12:44:45 +0200 Message-Id: <1345113885-9682-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 1.7.5.4 X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.8.16.103315 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_600_699 0, BODY_SIZE_7000_LESS 0, __ANY_URI 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. X-Headers-End: 1T1xZN-0003qm-Is Cc: spi-devel-general@lists.sourceforge.net X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: spi-devel-general-bounces@lists.sourceforge.net platform_set_drvdata expects a void *, so pass NULL instead of 0. Signed-off-by: Tobias Klauser --- drivers/spi/spi-xilinx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index 4c5a663..2501700 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -521,7 +521,7 @@ static int __devinit xilinx_spi_probe(struct platform_device *dev) static int __devexit xilinx_spi_remove(struct platform_device *dev) { xilinx_spi_deinit(platform_get_drvdata(dev)); - platform_set_drvdata(dev, 0); + platform_set_drvdata(dev, NULL); return 0; }