]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
NFC: NCI: move generic spi driver to a module
authorVincent Cuissard <cuissard@marvell.com>
Mon, 26 Oct 2015 09:27:42 +0000 (10:27 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 27 Oct 2015 03:21:38 +0000 (04:21 +0100)
SPI driver should be a module.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/nci/Kconfig
net/nfc/nci/Makefile
net/nfc/nci/spi.c

index 901c1ddba841aa1816eda0c14f20972008623c42..85d4819ab657d85d250827813ec3d680f9f3d58a 100644 (file)
@@ -12,7 +12,7 @@ config NFC_NCI
 config NFC_NCI_SPI
        depends on NFC_NCI && SPI
        select CRC_CCITT
-       bool "NCI over SPI protocol support"
+       tristate "NCI over SPI protocol support"
        default n
        help
          NCI (NFC Controller Interface) is a communication protocol between
index b4b85b82e9882c7830a11dc7b6ce6c56f3157099..0ca31d9bf7413e8cadcc2171cb3727f7e26f7893 100644 (file)
@@ -6,7 +6,8 @@ obj-$(CONFIG_NFC_NCI) += nci.o
 
 nci-objs := core.o data.o lib.o ntf.o rsp.o hci.o
 
-nci-$(CONFIG_NFC_NCI_SPI) += spi.o
+nci_spi-y += spi.o
+obj-$(CONFIG_NFC_NCI_SPI) += nci_spi.o
 
 nci_uart-y += uart.o
 obj-$(CONFIG_NFC_NCI_UART) += nci_uart.o
index ec250e77763a1d1e23f0560c151972ce274f82bc..25153d0e33cf7fdf3265356b2c5d45b3734f7eb3 100644 (file)
@@ -18,6 +18,8 @@
 
 #define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__
 
+#include <linux/module.h>
+
 #include <linux/export.h>
 #include <linux/spi/spi.h>
 #include <linux/crc-ccitt.h>
@@ -320,3 +322,5 @@ struct sk_buff *nci_spi_read(struct nci_spi *nspi)
        return skb;
 }
 EXPORT_SYMBOL_GPL(nci_spi_read);
+
+MODULE_LICENSE("GPL");