add pci device id for svo
authoryuyeon.oh <yuyeon.oh@samsung.com>
Mon, 13 Jun 2011 09:31:03 +0000 (18:31 +0900)
committeryuyeon.oh <yuyeon.oh@samsung.com>
Mon, 13 Jun 2011 09:31:03 +0000 (18:31 +0900)
Change-Id: I1f3e4d9e49d2c79bbec84a824e909d793ebcbfd9

drivers/media/video/svo.c

index 37cebf31be927bd0876918a5c682f3b25852d45c..6c30ed377323785ae08fbbca5c0ed4b378ce46ba 100755 (executable)
@@ -9,4 +9,49 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
+
+#include <linux/init.h>
+#include <linux/pci.h>
+
+static struct pci_device_id svo_pci_tbl[] = {
+       {
+               .vendor       = PCI_VENDOR_ID_SAMSUNG,
+               .device       = 0x1010,
+               .subvendor    = PCI_ANY_ID,
+               .subdevice    = PCI_ANY_ID,
+       }
+};
+
+static int __devinit svo_initdev(struct pci_dev *pci_dev,
+                                   const struct pci_device_id *pci_id)
+{
+       return 0;
+}
+
+static struct pci_driver svo_pci_driver = {
+       .name     = "svo",
+       .id_table = svo_pci_tbl,
+       .probe    = svo_initdev,
+//     .remove   = __devexit_p(cx8800_finidev),
+#ifdef CONFIG_PM
+//     .suspend  = cx8800_suspend,
+//     .resume   = cx8800_resume,
+#endif
+};
+
+static int __init svo_init(void)
+{
+       printk(KERN_INFO "svo: samsung virtual overlay driver version 0.1 loaded\n");
+
+       return pci_register_driver(&svo_pci_driver);
+}
+
+static void __exit svo_fini(void)
+{
+#if 0
+       pci_unregister_driver(&cx8800_pci_driver);
+#endif
+}
+
+module_init(svo_init);
+module_exit(svo_fini);