From patchwork Thu Aug 16 10:44:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 1330671 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 9AA0DE0000 for ; Thu, 16 Aug 2012 10:45:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1T1xZQ-0004qt-0I; Thu, 16 Aug 2012 10:44:56 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1T1xZP-0004qo-EI for spi-devel-general@lists.sourceforge.net; Thu, 16 Aug 2012 10:44:55 +0000 X-ACL-Warn: Received: from mx1.zhaw.ch ([160.85.104.50]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1T1xZO-00070k-7l for spi-devel-general@lists.sourceforge.net; Thu, 16 Aug 2012 10:44:55 +0000 Received: from mx1.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 5C23E4C70; 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 258072BB0; Thu, 16 Aug 2012 12:44:38 +0200 (CEST) From: Tobias Klauser To: Grant Likely , Mark Brown Subject: [PATCH] spi: spi-bcm63xx: Pass NULL to platform_set_drvdata Date: Thu, 16 Aug 2012 12:44:38 +0200 Message-Id: <1345113878-9626-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: 1T1xZO-00070k-7l 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-bcm63xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 6d97047..fc357e2 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -463,7 +463,7 @@ static int __devexit bcm63xx_spi_remove(struct platform_device *pdev) clk_disable(bs->clk); clk_put(bs->clk); - platform_set_drvdata(pdev, 0); + platform_set_drvdata(pdev, NULL); spi_master_put(master);