Module: xenomai-abe
Branch: analogy
Commit: 6ce44e3eedb88c7512968e64ecbc47002ba5bc69
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=6ce44e3eedb88c7512968e64ecbc47002ba5bc69

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Thu Dec 24 15:05:04 2009 +0100

analogy: replace EXPORT_SYMBOL() by EXPORT_SYMBOL_GPL()

---

 ksrc/drivers/analogy/driver_facilities.c           |   58 ++++++++++----------
 ksrc/drivers/analogy/intel/8255.c                  |    4 +-
 .../analogy/national_instruments/mio_common.c      |   22 ++++----
 ksrc/drivers/analogy/national_instruments/mite.c   |   42 +++++++-------
 4 files changed, 63 insertions(+), 63 deletions(-)

diff --git a/ksrc/drivers/analogy/driver_facilities.c 
b/ksrc/drivers/analogy/driver_facilities.c
index b350a46..1008c98 100644
--- a/ksrc/drivers/analogy/driver_facilities.c
+++ b/ksrc/drivers/analogy/driver_facilities.c
@@ -78,7 +78,7 @@
  *
  */
 int a4l_register_drv(a4l_drv_t * drv);
-EXPORT_SYMBOL(a4l_register_drv);
+EXPORT_SYMBOL_GPL(a4l_register_drv);
 
 /**
  * @brief Unregister an Analogy driver
@@ -92,7 +92,7 @@ EXPORT_SYMBOL(a4l_register_drv);
  *
  */
 int a4l_unregister_drv(a4l_drv_t * drv);
-EXPORT_SYMBOL(a4l_unregister_drv);
+EXPORT_SYMBOL_GPL(a4l_unregister_drv);
 
 /** @} */
 
@@ -134,12 +134,12 @@ EXPORT_SYMBOL(a4l_unregister_drv);
  * @{
  */
 
-EXPORT_SYMBOL(range_bipolar10);
-EXPORT_SYMBOL(range_bipolar5);
-EXPORT_SYMBOL(range_unipolar10);
-EXPORT_SYMBOL(range_unipolar5);
-EXPORT_SYMBOL(range_unknown);
-EXPORT_SYMBOL(range_fake);
+EXPORT_SYMBOL_GPL(range_bipolar10);
+EXPORT_SYMBOL_GPL(range_bipolar5);
+EXPORT_SYMBOL_GPL(range_unipolar10);
+EXPORT_SYMBOL_GPL(range_unipolar5);
+EXPORT_SYMBOL_GPL(range_unknown);
+EXPORT_SYMBOL_GPL(range_fake);
 
 /**
  * @brief Allocate a subdevice descriptor
@@ -156,7 +156,7 @@ EXPORT_SYMBOL(range_fake);
  */
 a4l_subd_t * a4l_alloc_subd(int sizeof_priv,
                                  void (*setup)(a4l_subd_t *));
-EXPORT_SYMBOL(a4l_alloc_subd);
+EXPORT_SYMBOL_GPL(a4l_alloc_subd);
 
 /**
  * @brief Add a subdevice to the driver descriptor
@@ -173,7 +173,7 @@ EXPORT_SYMBOL(a4l_alloc_subd);
  *
  */
 int a4l_add_subd(a4l_dev_t *dev, a4l_subd_t *subd);
-EXPORT_SYMBOL(a4l_add_subd);
+EXPORT_SYMBOL_GPL(a4l_add_subd);
 
 /**
  * @brief Get a pointer to the subdevice descriptor referenced by its
@@ -192,7 +192,7 @@ EXPORT_SYMBOL(a4l_add_subd);
  *
  */
 a4l_subd_t *a4l_get_subd(a4l_dev_t *dev, int idx);
-EXPORT_SYMBOL(a4l_get_subd);
+EXPORT_SYMBOL_GPL(a4l_get_subd);
 
 /** @} */
 
@@ -273,7 +273,7 @@ EXPORT_SYMBOL(a4l_get_subd);
  *
  */
 int a4l_buf_prepare_absput(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_prepare_absput);
+EXPORT_SYMBOL_GPL(a4l_buf_prepare_absput);
 
 /**
  * @brief Set the absolute count of data which was sent from the
@@ -298,7 +298,7 @@ EXPORT_SYMBOL(a4l_buf_prepare_absput);
  *
  */
 int a4l_buf_commit_absput(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_commit_absput);
+EXPORT_SYMBOL_GPL(a4l_buf_commit_absput);
 
 /**
  * @brief Set the count of data which is to be sent to the buffer at
@@ -320,7 +320,7 @@ EXPORT_SYMBOL(a4l_buf_commit_absput);
  *
  */
 int a4l_buf_prepare_put(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_prepare_put);
+EXPORT_SYMBOL_GPL(a4l_buf_prepare_put);
 
 /**
  * @brief Set the count of data sent to the buffer during the last
@@ -342,7 +342,7 @@ EXPORT_SYMBOL(a4l_buf_prepare_put);
  *
  */
 int a4l_buf_commit_put(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_commit_put);
+EXPORT_SYMBOL_GPL(a4l_buf_commit_put);
 
 /**
  * @brief Copy some data from the device driver to the buffer
@@ -360,7 +360,7 @@ EXPORT_SYMBOL(a4l_buf_commit_put);
  *
  */
 int a4l_buf_put(a4l_subd_t *subd, void *bufdata, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_put);
+EXPORT_SYMBOL_GPL(a4l_buf_put);
 
 /**
  * @brief Update the absolute count of data sent from the buffer to
@@ -385,7 +385,7 @@ EXPORT_SYMBOL(a4l_buf_put);
  *
  */
 int a4l_buf_prepare_absget(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_prepare_absget);
+EXPORT_SYMBOL_GPL(a4l_buf_prepare_absget);
 
 /**
  * @brief Set the absolute count of data which was sent from the
@@ -410,7 +410,7 @@ EXPORT_SYMBOL(a4l_buf_prepare_absget);
  *
  */
 int a4l_buf_commit_absget(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_commit_absget);
+EXPORT_SYMBOL_GPL(a4l_buf_commit_absget);
 
 /**
  * @brief Set the count of data which is to be sent from the buffer to
@@ -432,7 +432,7 @@ EXPORT_SYMBOL(a4l_buf_commit_absget);
  *
  */
 int a4l_buf_prepare_get(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_prepare_get);
+EXPORT_SYMBOL_GPL(a4l_buf_prepare_get);
 
 /**
  * @brief Set the count of data sent from the buffer to the device
@@ -454,7 +454,7 @@ EXPORT_SYMBOL(a4l_buf_prepare_get);
  *
  */
 int a4l_buf_commit_get(a4l_subd_t *subd, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_commit_get);
+EXPORT_SYMBOL_GPL(a4l_buf_commit_get);
 
 /**
  * @brief Copy some data from the buffer to the device driver
@@ -473,7 +473,7 @@ EXPORT_SYMBOL(a4l_buf_commit_get);
  *
  */
 int a4l_buf_get(a4l_subd_t *subd, void *bufdata, unsigned long count);
-EXPORT_SYMBOL(a4l_buf_get);
+EXPORT_SYMBOL_GPL(a4l_buf_get);
 
 /**
  * @brief Signal some event(s) to a user-space program involved in
@@ -496,7 +496,7 @@ EXPORT_SYMBOL(a4l_buf_get);
  *
  */
 int a4l_buf_evt(a4l_subd_t *subd, unsigned long evts);
-EXPORT_SYMBOL(a4l_buf_evt);
+EXPORT_SYMBOL_GPL(a4l_buf_evt);
 
 /**
  * @brief Get the data amount available in the Analogy buffer 
@@ -507,7 +507,7 @@ EXPORT_SYMBOL(a4l_buf_evt);
  *
  */
 unsigned long a4l_buf_count(a4l_subd_t *subd);
-EXPORT_SYMBOL(a4l_buf_count);
+EXPORT_SYMBOL_GPL(a4l_buf_count);
 
 /**
  * @brief Get the current Analogy command descriptor
@@ -518,7 +518,7 @@ EXPORT_SYMBOL(a4l_buf_count);
  *
  */
 a4l_cmd_t *a4l_get_cmd(a4l_subd_t * subd);
-EXPORT_SYMBOL(a4l_get_cmd);
+EXPORT_SYMBOL_GPL(a4l_get_cmd);
 
 
 /**
@@ -530,7 +530,7 @@ EXPORT_SYMBOL(a4l_get_cmd);
  *
  */
 int a4l_get_chan(a4l_subd_t *subd);
-EXPORT_SYMBOL(a4l_get_chan);
+EXPORT_SYMBOL_GPL(a4l_get_chan);
 
 /** @} */
 
@@ -552,7 +552,7 @@ EXPORT_SYMBOL(a4l_get_chan);
  *
  */
 unsigned int a4l_get_irq(a4l_dev_t * dev);
-EXPORT_SYMBOL(a4l_get_irq);
+EXPORT_SYMBOL_GPL(a4l_get_irq);
 
 /**
  * @brief Register an interrupt handler for a specific device
@@ -579,7 +579,7 @@ int a4l_request_irq(a4l_dev_t * dev,
                       unsigned int irq,
                       a4l_irq_hdlr_t handler,
                       unsigned long flags, void *cookie);
-EXPORT_SYMBOL(a4l_request_irq);
+EXPORT_SYMBOL_GPL(a4l_request_irq);
 
 /**
  * @brief Release an interrupt handler for a specific device
@@ -591,7 +591,7 @@ EXPORT_SYMBOL(a4l_request_irq);
  *
  */
 int a4l_free_irq(a4l_dev_t * dev, unsigned int irq);
-EXPORT_SYMBOL(a4l_free_irq);
+EXPORT_SYMBOL_GPL(a4l_free_irq);
 
 /** @} */
 
@@ -661,6 +661,6 @@ int a4l_task_sleep(unsigned long long nsdelay);
  *
  */
 unsigned long long a4l_get_time(void);
-EXPORT_SYMBOL(a4l_get_time);
+EXPORT_SYMBOL_GPL(a4l_get_time);
 
 /** @} */
diff --git a/ksrc/drivers/analogy/intel/8255.c 
b/ksrc/drivers/analogy/intel/8255.c
index c43df78..5ed5211 100644
--- a/ksrc/drivers/analogy/intel/8255.c
+++ b/ksrc/drivers/analogy/intel/8255.c
@@ -59,7 +59,7 @@ void subdev_8255_interrupt(a4l_subd_t *subd)
 
        a4l_buf_evt(subd, 0);
 }
-EXPORT_SYMBOL(subdev_8255_interrupt);
+EXPORT_SYMBOL_GPL(subdev_8255_interrupt);
 
 static int subdev_8255_cb(int dir, int port, int data, unsigned long arg)
 {
@@ -227,7 +227,7 @@ void subdev_8255_init(a4l_subd_t *subd)
 
        do_config(subd);
 }
-EXPORT_SYMBOL(subdev_8255_init);
+EXPORT_SYMBOL_GPL(subdev_8255_init);
 
 /*
 
diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drivers/analogy/national_instruments/mio_common.c
index 1a5ce87..c8e9b86 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -5340,14 +5340,14 @@ int ni_E_init(a4l_dev_t *dev)
 MODULE_DESCRIPTION("Analogy support for NI DAQ-STC based boards");
 MODULE_LICENSE("GPL");
 
-EXPORT_SYMBOL(range_ni_E_ai);
-EXPORT_SYMBOL(range_ni_E_ai_limited);
-EXPORT_SYMBOL(range_ni_E_ai_limited14);
-EXPORT_SYMBOL(range_ni_E_ai_bipolar4);
-EXPORT_SYMBOL(range_ni_E_ai_611x);
-EXPORT_SYMBOL(range_ni_M_ai_622x);
-EXPORT_SYMBOL(range_ni_M_ai_628x);
-EXPORT_SYMBOL(range_ni_S_ai_6143);
-EXPORT_SYMBOL(range_ni_E_ao_ext);
-EXPORT_SYMBOL(ni_E_interrupt);
-EXPORT_SYMBOL(ni_E_init);
+EXPORT_SYMBOL_GPL(range_ni_E_ai);
+EXPORT_SYMBOL_GPL(range_ni_E_ai_limited);
+EXPORT_SYMBOL_GPL(range_ni_E_ai_limited14);
+EXPORT_SYMBOL_GPL(range_ni_E_ai_bipolar4);
+EXPORT_SYMBOL_GPL(range_ni_E_ai_611x);
+EXPORT_SYMBOL_GPL(range_ni_M_ai_622x);
+EXPORT_SYMBOL_GPL(range_ni_M_ai_628x);
+EXPORT_SYMBOL_GPL(range_ni_S_ai_6143);
+EXPORT_SYMBOL_GPL(range_ni_E_ao_ext);
+EXPORT_SYMBOL_GPL(ni_E_interrupt);
+EXPORT_SYMBOL_GPL(ni_E_init);
diff --git a/ksrc/drivers/analogy/national_instruments/mite.c 
b/ksrc/drivers/analogy/national_instruments/mite.c
index fd815fe..e18ffae 100644
--- a/ksrc/drivers/analogy/national_instruments/mite.c
+++ b/ksrc/drivers/analogy/national_instruments/mite.c
@@ -280,7 +280,7 @@ struct mite_struct * mite_find_device(int bus, int slot, 
unsigned short device_i
 
        return NULL;
 }
-EXPORT_SYMBOL(mite_find_device);
+EXPORT_SYMBOL_GPL(mite_find_device);
 
 struct mite_channel *mite_request_channel_in_range(struct mite_struct *mite,
                                                   struct 
mite_dma_descriptor_ring *ring, 
@@ -785,26 +785,26 @@ MODULE_LICENSE("GPL");
 module_init(mite_init);
 module_exit(mite_cleanup);
 
-EXPORT_SYMBOL(mite_dma_arm);
-EXPORT_SYMBOL(mite_dma_disarm);
-EXPORT_SYMBOL(mite_sync_input_dma);
-EXPORT_SYMBOL(mite_sync_output_dma);
-EXPORT_SYMBOL(mite_setup);
-EXPORT_SYMBOL(mite_unsetup);
-EXPORT_SYMBOL(mite_list_devices);
-EXPORT_SYMBOL(mite_request_channel_in_range);
-EXPORT_SYMBOL(mite_release_channel);
-EXPORT_SYMBOL(mite_prep_dma);
-EXPORT_SYMBOL(mite_buf_change);
-EXPORT_SYMBOL(mite_bytes_written_to_memory_lb);
-EXPORT_SYMBOL(mite_bytes_written_to_memory_ub);
-EXPORT_SYMBOL(mite_bytes_read_from_memory_lb);
-EXPORT_SYMBOL(mite_bytes_read_from_memory_ub);
-EXPORT_SYMBOL(mite_bytes_in_transit);
-EXPORT_SYMBOL(mite_get_status);
-EXPORT_SYMBOL(mite_done);
+EXPORT_SYMBOL_GPL(mite_dma_arm);
+EXPORT_SYMBOL_GPL(mite_dma_disarm);
+EXPORT_SYMBOL_GPL(mite_sync_input_dma);
+EXPORT_SYMBOL_GPL(mite_sync_output_dma);
+EXPORT_SYMBOL_GPL(mite_setup);
+EXPORT_SYMBOL_GPL(mite_unsetup);
+EXPORT_SYMBOL_GPL(mite_list_devices);
+EXPORT_SYMBOL_GPL(mite_request_channel_in_range);
+EXPORT_SYMBOL_GPL(mite_release_channel);
+EXPORT_SYMBOL_GPL(mite_prep_dma);
+EXPORT_SYMBOL_GPL(mite_buf_change);
+EXPORT_SYMBOL_GPL(mite_bytes_written_to_memory_lb);
+EXPORT_SYMBOL_GPL(mite_bytes_written_to_memory_ub);
+EXPORT_SYMBOL_GPL(mite_bytes_read_from_memory_lb);
+EXPORT_SYMBOL_GPL(mite_bytes_read_from_memory_ub);
+EXPORT_SYMBOL_GPL(mite_bytes_in_transit);
+EXPORT_SYMBOL_GPL(mite_get_status);
+EXPORT_SYMBOL_GPL(mite_done);
 #ifdef CONFIG_DEBUG_MITE
-EXPORT_SYMBOL(mite_decode);
-EXPORT_SYMBOL(mite_dump_regs);
+EXPORT_SYMBOL_GPL(mite_decode);
+EXPORT_SYMBOL_GPL(mite_dump_regs);
 #endif /* CONFIG_DEBUG_MITE */
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to