From patchwork Wed Dec 22 12:57:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomoya X-Patchwork-Id: 427101 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBMDFXTJ017530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 22 Dec 2010 13:15:54 GMT 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.69) (envelope-from ) id 1PVOWl-0000cW-3E; Wed, 22 Dec 2010 13:14:47 +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.69) (envelope-from ) id 1PVOWk-0000cH-4G for spi-devel-general@lists.sourceforge.net; Wed, 22 Dec 2010 13:14:46 +0000 X-ACL-Warn: Received: from sm-d311v.smileserver.ne.jp ([203.211.202.206]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.72) id 1PVOWi-00073a-0w for spi-devel-general@lists.sourceforge.net; Wed, 22 Dec 2010 13:14:46 +0000 X-Virus-Status: clean(F-Secure/virusgw_smtp/403/viruscheck2-00.private.hosting-pf.net) Received: from localhost.localdomain (113x35x143x224.ap113.ftth.ucom.ne.jp [113.35.143.224]) by sm-d311v.smileserver.ne.jp (mail) with ESMTPSA id EC5AB96D7B; Wed, 22 Dec 2010 21:55:25 +0900 (JST) From: Tomoya MORINAGA To: David Brownell , Grant Likely , spi-devel-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] spi: Fix rmmod module issue Date: Wed, 22 Dec 2010 21:57:47 +0900 Message-Id: <1293022667-2904-1-git-send-email-tomoya-linux@dsn.okisemi.com> X-Mailer: git-send-email 1.6.0.6 X-Hosting-Pf: 0 X-NAI-Spam-Score: 1.5 X-Spam-Score: 1.9 (+) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 1.9 AWL AWL: From: address is in the auto white-list X-Headers-End: 1PVOWi-00073a-0w Cc: Tomoya MORINAGA 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Dec 2010 13:15:55 +0000 (UTC) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 709c836..3c8ff6f 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -586,7 +586,6 @@ void spi_unregister_master(struct spi_master *master) dummy = device_for_each_child(master->dev.parent, &master->dev, __unregister); - device_unregister(&master->dev); } EXPORT_SYMBOL_GPL(spi_unregister_master);