Commit 7dbb2bc0 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Make modules compile as three .ko objects, fix license

parent 6afee618
...@@ -12,7 +12,9 @@ obj-$(CONFIG_ELPHEL393_INIT) += elphel393-init.o ...@@ -12,7 +12,9 @@ obj-$(CONFIG_ELPHEL393_INIT) += elphel393-init.o
#obj-$(CONFIG_ELPHEL393) += quantization_tables.o #obj-$(CONFIG_ELPHEL393) += quantization_tables.o
#obj-$(CONFIG_ELPHEL393) += circbuf.o jpeghead.o #obj-$(CONFIG_ELPHEL393) += circbuf.o jpeghead.o
framepars-objs := sensor_common.o
sensor_common-objs := quantization_tables.o
circbuf-objs := jpeghead.o
obj-$(CONFIG_ELPHEL393_EXTERNAL) += framepars.o obj-$(CONFIG_ELPHEL393_EXTERNAL) += framepars.o
obj-$(CONFIG_ELPHEL393_EXTERNAL) += sensor_common.o obj-$(CONFIG_ELPHEL393_EXTERNAL) += sensor_common.o
obj-$(CONFIG_ELPHEL393_EXTERNAL) += quantization_tables.o obj-$(CONFIG_ELPHEL393_EXTERNAL) += circbuf.o
obj-$(CONFIG_ELPHEL393_EXTERNAL) += circbuf.o jpeghead.o \ No newline at end of file
\ No newline at end of file
...@@ -683,6 +683,7 @@ unsigned int circbuf_poll (struct file *file, poll_table *wait) { ...@@ -683,6 +683,7 @@ unsigned int circbuf_poll (struct file *file, poll_table *wait) {
static int __init circbuf_all_init(void) { static int __init circbuf_all_init(void) {
int res; int res;
printk(KERN_DEBUG "Loading %s", __func__);
MDF19(printk("\n")); MDF19(printk("\n"));
res = register_chrdev(CIRCBUF_MAJOR, "circbuf_operations", &circbuf_fops); res = register_chrdev(CIRCBUF_MAJOR, "circbuf_operations", &circbuf_fops);
if(res < 0) { if(res < 0) {
......
...@@ -766,3 +766,5 @@ int jpeg_prep_htable (struct huffman_encoded_t * htable, struct huffman_fpga_cod ...@@ -766,3 +766,5 @@ int jpeg_prep_htable (struct huffman_encoded_t * htable, struct huffman_fpga_cod
return 0; return 0;
} }
MODULE_LICENSE("GPL");
...@@ -198,7 +198,6 @@ void reset_qtables(void) { ...@@ -198,7 +198,6 @@ void reset_qtables(void) {
qtable_cache_initialized=0; qtable_cache_initialized=0;
qtable_fpga_initialized=0; qtable_fpga_initialized=0;
} }
EXPORT_SYMBOL_GPL(reset_qtables);
/** /**
...@@ -955,3 +954,5 @@ void set_coring_fpga(int coring_number, int fpga_number) { ...@@ -955,3 +954,5 @@ void set_coring_fpga(int coring_number, int fpga_number) {
#endif /* TEST_DISABLE_CODE */ #endif /* TEST_DISABLE_CODE */
MDF15(int i; for (i=0;i<32;i++) {if ((i & 7)==0) printk("\n");printk(" %08x",(int) coring_tables[coring_number*CORING_SIZE +i]);} printk("\n")); MDF15(int i; for (i=0;i<32;i++) {if ((i & 7)==0) printk("\n");printk(" %08x",(int) coring_tables[coring_number*CORING_SIZE +i]);} printk("\n"));
} }
MODULE_LICENSE("GPL");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment