]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] v4l2: blackfin: convert ppi driver to a module
authorScott Jiang <scott.jiang.linux@gmail.com>
Tue, 20 Nov 2012 18:49:35 +0000 (15:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Dec 2012 12:31:55 +0000 (10:31 -0200)
Other drivers can make use of it.

Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/blackfin/Kconfig
drivers/media/platform/blackfin/Makefile
drivers/media/platform/blackfin/ppi.c

index ecd5323768b76aa5a6224a97db010266241e93d7..519990e1712288b0d4e9194c9f076761f9bb26a7 100644 (file)
@@ -2,9 +2,13 @@ config VIDEO_BLACKFIN_CAPTURE
        tristate "Blackfin Video Capture Driver"
        depends on VIDEO_V4L2 && BLACKFIN && I2C
        select VIDEOBUF2_DMA_CONTIG
+       select VIDEO_BLACKFIN_PPI
        help
          V4L2 bridge driver for Blackfin video capture device.
          Choose PPI or EPPI as its interface.
 
          To compile this driver as a module, choose M here: the
-         module will be called bfin_video_capture.
+         module will be called bfin_capture.
+
+config VIDEO_BLACKFIN_PPI
+       tristate
index aa3a0a21638706f6151f612823ada4a2a165581f..30421bc2308074d70e2c4ef821c7d680298f3bcd 100644 (file)
@@ -1,2 +1,2 @@
-bfin_video_capture-objs := bfin_capture.o ppi.o
-obj-$(CONFIG_VIDEO_BLACKFIN_CAPTURE) += bfin_video_capture.o
+obj-$(CONFIG_VIDEO_BLACKFIN_CAPTURE) += bfin_capture.o
+obj-$(CONFIG_VIDEO_BLACKFIN_PPI)     += ppi.o
index d29592186b020427b3464f4c820de4df344fd6b4..9374d676f63d80f29ad7f4c8c66fc4b2405556e9 100644 (file)
@@ -17,6 +17,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
+#include <linux/module.h>
 #include <linux/slab.h>
 
 #include <asm/bfin_ppi.h>
@@ -263,9 +264,15 @@ struct ppi_if *ppi_create_instance(const struct ppi_info *info)
        pr_info("ppi probe success\n");
        return ppi;
 }
+EXPORT_SYMBOL(ppi_create_instance);
 
 void ppi_delete_instance(struct ppi_if *ppi)
 {
        peripheral_free_list(ppi->info->pin_req);
        kfree(ppi);
 }
+EXPORT_SYMBOL(ppi_delete_instance);
+
+MODULE_DESCRIPTION("Analog Devices PPI driver");
+MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");
+MODULE_LICENSE("GPL v2");