diff mbox

dw_spi.c can now be built as a module.

Message ID 20100121164349.10132.24020.stgit@station520.octasic.com (mailing list archive)
State Accepted
Headers show

Commit Message

Jean-Hugues Deschenes Jan. 21, 2010, 4:44 p.m. UTC
None
diff mbox

Patch

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 <feng.tang@intel.com>");
 MODULE_DESCRIPTION("Driver for DesignWare SPI controller core");
 MODULE_LICENSE("GPL v2");