summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/siano/smscoreapi.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-05-19 15:34:09 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-05-19 15:34:09 +0000
commit3c278aedd50ae75abf8b20630363185eff753f88 (patch)
tree53f53ab03a72a460c062dbbbba78318e6064d842 /linux/drivers/media/dvb/siano/smscoreapi.c
parent0bd1a842c277e4fbd4b78c3af80708135638e820 (diff)
downloadmediapointer-dvb-s2-3c278aedd50ae75abf8b20630363185eff753f88.tar.gz
mediapointer-dvb-s2-3c278aedd50ae75abf8b20630363185eff753f88.tar.bz2
Siano: smscore - remove redundant code
From: Uri Shkolnik <uris@siano-ms.com> remove redundant code, which in the past handled the various components (now independent modules) registrations. Priority: normal Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r--linux/drivers/media/dvb/siano/smscoreapi.c88
1 files changed, 0 insertions, 88 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c
index 6446e0f6c..802d7e6a9 100644
--- a/linux/drivers/media/dvb/siano/smscoreapi.c
+++ b/linux/drivers/media/dvb/siano/smscoreapi.c
@@ -1645,99 +1645,11 @@ static int __init smscore_module_init(void)
INIT_LIST_HEAD(&g_smscore_registry);
kmutex_init(&g_smscore_registrylock);
-#if 0 /* def SMS_CHAR_CLIENT */
- /* Char interface Register */
- rc = smschar_register();
- if (rc) {
- sms_err("Error registering char device client.\n");
- goto smschar_error;
- }
-#endif
-
-#if 0 /* def SMS_DVB_CLIENT */
- /* DVB Register */
- rc = smsdvb_register();
- if (rc) {
- sms_err("Error registering DVB client.\n");
- goto smsdvb_error;
- }
-#endif
-
-#if 0 /* def SMS_NET_CLIENT */
- /* DVB Register */
- rc = smsnet_register();
- if (rc) {
- sms_err("Error registering Network client.\n");
- goto smsnet_error;
- }
-#endif
-
-#if 0 /* def SMS_USB_BUS_DRV */
- /* USB Register */
- rc = smsusb_register();
- if (rc) {
- sms_err("Error registering USB bus driver.\n");
- goto sms_bus_drv_error;
- }
-#endif
-
-#if 0 /* def SMS_SPI_BUS_DRV */
- /* USB Register */
- rc = smsspi_register();
- if (rc) {
- sms_err("Error registering spi bus driver.\n");
- goto sms_bus_drv_error;
- }
-#endif
-
- return rc;
-#if 0
-sms_bus_drv_error:
-#endif /* 0 */
-#if 0 /* def SMS_NET_CLIENT */
- smsnet_unregister();
-smsnet_error:
-#endif
-#if 0 /* def SMS_DVB_CLIENT */
- smsdvb_unregister();
-smsdvb_error:
-#endif
-#if 0 /* def SMS_CHAR_CLIENT */
- smschar_unregister();
-smschar_error:
-#endif
- sms_debug("rc %d", rc);
-
return rc;
}
static void __exit smscore_module_exit(void)
{
-#if 0 /* def SMS_CHAR_CLIENT */
- /* Char interface UnRegister */
- smschar_unregister();
-#endif
-
-#if 0 /* def SMS_DVB_CLIENT */
- /* DVB UnRegister */
- smsdvb_unregister();
-#endif
-
-#if 0 /* def SMS_NET_CLIENT */
- /* NET UnRegister */
- smsnet_unregister();
-#endif
-
-#if 0 /* def SMS_USB_BUS_DRV */
- /* Unregister USB */
- smsusb_unregister();
-#endif
-
-#if 0 /* def SMS_SPI_BUS_DRV */
- /* Unregister SPI */
- smsspi_unregister();
-#endif
-
kmutex_lock(&g_smscore_deviceslock);
while (!list_empty(&g_smscore_notifyees)) {
struct smscore_device_notifyee_t *notifyee =