From patchwork Thu Jan 21 16:44:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Hugues Deschenes X-Patchwork-Id: 74389 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0LGiK0Q011411 for ; Thu, 21 Jan 2010 16:44:20 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 1NY08o-0005m2-E0; Thu, 21 Jan 2010 16:44:18 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NY08n-0005lw-EN for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 16:44:17 +0000 X-ACL-Warn: Received: from mail.octasic.com ([70.54.254.106] helo=MAILEXCH.octasic.com) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NY08l-0007lE-49 for spi-devel-general@lists.sourceforge.net; Thu, 21 Jan 2010 16:44:17 +0000 Received: from station520.octasic.com ([142.138.24.20]) by MAILEXCH.octasic.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 21 Jan 2010 11:44:09 -0500 To: Grant Likely From: Jean-Hugues Deschenes Date: Thu, 21 Jan 2010 11:44:09 -0500 Message-ID: <20100121164349.10132.24020.stgit@station520.octasic.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-OriginalArrivalTime: 21 Jan 2010 16:44:09.0148 (UTC) FILETIME=[F3FB67C0:01CA9AB8] X-Spam-Score: 0.1 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.1 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NY08l-0007lE-49 Cc: spi-devel-general@lists.sourceforge.net Subject: [spi-devel-general] [PATCH] dw_spi.c can now be built as a module. 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: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 02be3a6..505f1c2 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -308,7 +308,7 @@ config SPI_NUC900 # config SPI_DESIGNWARE - bool "DesignWare SPI controller core support" + tristate "DesignWare SPI controller core support" depends on SPI_MASTER help general driver for SPI controller core from DesignWare diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 4b5a9a1..754f21c 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c @@ -940,6 +940,17 @@ int dw_spi_resume_host(struct dw_spi *dws) } EXPORT_SYMBOL(dw_spi_resume_host); +static int __init dw_spi_init(void) +{ + return 0; +} +module_init(dw_spi_init); + +static void __exit dw_spi_exit(void) +{ +} +module_exit(dw_spi_exit); + MODULE_AUTHOR("Feng Tang "); MODULE_DESCRIPTION("Driver for DesignWare SPI controller core"); MODULE_LICENSE("GPL v2");