summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-02-26 16:32:36 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2009-02-26 16:32:36 -0500
commit9c48ff787617a8ab6870134701fa0ee1e7df608e (patch)
treee4af13e42ae3fd540d7c3e9ed988a17be935e2aa
parent7d89270edcc221ddc81a48fb810066488b224b25 (diff)
downloadmediapointer-dvb-s2-9c48ff787617a8ab6870134701fa0ee1e7df608e.tar.gz
mediapointer-dvb-s2-9c48ff787617a8ab6870134701fa0ee1e7df608e.tar.bz2
siano: convert EXPORT_SYMBOL to EXPORT_SYMBOL_GPL
From: Michael Krufky <mkrufky@linuxtv.org> As pointed out by Mauro Chehab, we should always use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL wherever possible. A message was posted to the linux-media mailing list about this, checking with Uri Shkolnik of Siano Mobile Silicon if this is okay to convert. As per Uri's response to this email, it is OK for us to make this conversion. http://www.spinics.net/lists/linux-media/msg02200.html Priority: normal Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--linux/drivers/media/dvb/siano/sms-cards.c12
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.c30
2 files changed, 21 insertions, 21 deletions
diff --git a/linux/drivers/media/dvb/siano/sms-cards.c b/linux/drivers/media/dvb/siano/sms-cards.c
index 44df81a81..66f591937 100644
--- a/linux/drivers/media/dvb/siano/sms-cards.c
+++ b/linux/drivers/media/dvb/siano/sms-cards.c
@@ -86,7 +86,7 @@ struct sms_board *sms_get_board(int id)
return &sms_boards[id];
}
-EXPORT_SYMBOL(sms_get_board);
+EXPORT_SYMBOL_GPL(sms_get_board);
static int sms_set_gpio(struct smscore_device_t *coredev, int pin, int enable)
{
@@ -139,7 +139,7 @@ int sms_board_setup(struct smscore_device_t *coredev)
}
return 0;
}
-EXPORT_SYMBOL(sms_board_setup);
+EXPORT_SYMBOL_GPL(sms_board_setup);
int sms_board_power(struct smscore_device_t *coredev, int onoff)
{
@@ -161,7 +161,7 @@ int sms_board_power(struct smscore_device_t *coredev, int onoff)
}
return 0;
}
-EXPORT_SYMBOL(sms_board_power);
+EXPORT_SYMBOL_GPL(sms_board_power);
int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
{
@@ -184,7 +184,7 @@ int sms_board_led_feedback(struct smscore_device_t *coredev, int led)
}
return 0;
}
-EXPORT_SYMBOL(sms_board_led_feedback);
+EXPORT_SYMBOL_GPL(sms_board_led_feedback);
int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
{
@@ -203,7 +203,7 @@ int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
}
return -EINVAL;
}
-EXPORT_SYMBOL(sms_board_lna_control);
+EXPORT_SYMBOL_GPL(sms_board_lna_control);
int sms_board_load_modules(int id)
{
@@ -220,4 +220,4 @@ int sms_board_load_modules(int id)
}
return 0;
}
-EXPORT_SYMBOL(sms_board_load_modules);
+EXPORT_SYMBOL_GPL(sms_board_load_modules);
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c
index 8cb36f540..812b57ab7 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.c
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c
@@ -105,13 +105,13 @@ int smscore_led_state(struct smscore_device_t *core, int led)
core->led_state = led;
return core->led_state;
}
-EXPORT_SYMBOL(smscore_set_board_id);
+EXPORT_SYMBOL_GPL(smscore_set_board_id);
int smscore_get_board_id(struct smscore_device_t *core)
{
return core->board_id;
}
-EXPORT_SYMBOL(smscore_get_board_id);
+EXPORT_SYMBOL_GPL(smscore_get_board_id);
struct smscore_registry_entry_t {
struct list_head entry;
@@ -172,7 +172,7 @@ int smscore_registry_getmode(char *devpath)
return default_mode;
}
-EXPORT_SYMBOL(smscore_registry_getmode);
+EXPORT_SYMBOL_GPL(smscore_registry_getmode);
static enum sms_device_type_st smscore_registry_gettype(char *devpath)
{
@@ -264,7 +264,7 @@ int smscore_register_hotplug(hotplug_t hotplug)
return rc;
}
-EXPORT_SYMBOL(smscore_register_hotplug);
+EXPORT_SYMBOL_GPL(smscore_register_hotplug);
/**
* unregister a client callback that called when device plugged in/unplugged
@@ -293,7 +293,7 @@ void smscore_unregister_hotplug(hotplug_t hotplug)
kmutex_unlock(&g_smscore_deviceslock);
}
-EXPORT_SYMBOL(smscore_unregister_hotplug);
+EXPORT_SYMBOL_GPL(smscore_unregister_hotplug);
static void smscore_notify_clients(struct smscore_device_t *coredev)
{
@@ -437,7 +437,7 @@ int smscore_register_device(struct smsdevice_params_t *params,
return 0;
}
-EXPORT_SYMBOL(smscore_register_device);
+EXPORT_SYMBOL_GPL(smscore_register_device);
/**
* sets initial device mode and notifies client hotplugs that device is ready
@@ -466,7 +466,7 @@ int smscore_start_device(struct smscore_device_t *coredev)
return rc;
}
-EXPORT_SYMBOL(smscore_start_device);
+EXPORT_SYMBOL_GPL(smscore_start_device);
static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev,
void *buffer, size_t size,
@@ -695,7 +695,7 @@ void smscore_unregister_device(struct smscore_device_t *coredev)
sms_info("device %p destroyed", coredev);
}
-EXPORT_SYMBOL(smscore_unregister_device);
+EXPORT_SYMBOL_GPL(smscore_unregister_device);
static int smscore_detect_mode(struct smscore_device_t *coredev)
{
@@ -887,7 +887,7 @@ int smscore_get_device_mode(struct smscore_device_t *coredev)
{
return coredev->mode;
}
-EXPORT_SYMBOL(smscore_get_device_mode);
+EXPORT_SYMBOL_GPL(smscore_get_device_mode);
/**
* find client by response id & type within the clients list.
@@ -1022,7 +1022,7 @@ void smscore_onresponse(struct smscore_device_t *coredev,
smscore_putbuffer(coredev, cb);
}
}
-EXPORT_SYMBOL(smscore_onresponse);
+EXPORT_SYMBOL_GPL(smscore_onresponse);
/**
* return pointer to next free buffer descriptor from core pool
@@ -1048,7 +1048,7 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev)
return cb;
}
-EXPORT_SYMBOL(smscore_getbuffer);
+EXPORT_SYMBOL_GPL(smscore_getbuffer);
/**
* return buffer descriptor to a pool
@@ -1063,7 +1063,7 @@ void smscore_putbuffer(struct smscore_device_t *coredev,
{
list_add_locked(&cb->entry, &coredev->buffers, &coredev->bufferslock);
}
-EXPORT_SYMBOL(smscore_putbuffer);
+EXPORT_SYMBOL_GPL(smscore_putbuffer);
static int smscore_validate_client(struct smscore_device_t *coredev,
struct smscore_client_t *client,
@@ -1143,7 +1143,7 @@ int smscore_register_client(struct smscore_device_t *coredev,
return 0;
}
-EXPORT_SYMBOL(smscore_register_client);
+EXPORT_SYMBOL_GPL(smscore_register_client);
/**
* frees smsclient object and all subclients associated with it
@@ -1174,7 +1174,7 @@ void smscore_unregister_client(struct smscore_client_t *client)
spin_unlock_irqrestore(&coredev->clientslock, flags);
}
-EXPORT_SYMBOL(smscore_unregister_client);
+EXPORT_SYMBOL_GPL(smscore_unregister_client);
/**
* verifies that source id is not taken by another client,
@@ -1214,7 +1214,7 @@ int smsclient_sendrequest(struct smscore_client_t *client,
return coredev->sendrequest_handler(coredev->context, buffer, size);
}
-EXPORT_SYMBOL(smsclient_sendrequest);
+EXPORT_SYMBOL_GPL(smsclient_sendrequest);
#if 0
/**