summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMarkus Rechberger <mrechberger@gmail.com>2007-02-20 19:51:54 +0100
committerMarkus Rechberger <mrechberger@gmail.com>2007-02-20 19:51:54 +0100
commitddbfb0b75082cb12cbd091238eac94a3c8145135 (patch)
tree040cbb8c8dd7b4ce857c7abc76092fc6645cab35 /linux
parent1dc1829e27ce5205f46a65e63d9bc7f2bf3dc1a9 (diff)
downloadmediapointer-dvb-s2-ddbfb0b75082cb12cbd091238eac94a3c8145135.tar.gz
mediapointer-dvb-s2-ddbfb0b75082cb12cbd091238eac94a3c8145135.tar.bz2
added support for loading cx88-dvb and cx88-blackbird
From: Markus Rechberger <mrechberger@gmail.com> added support for loading cx88-dvb and cx88-blackbird Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/cx88/cx88-mpeg.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c
index c7b5a2081..39a556c63 100644
--- a/linux/drivers/media/video/cx88/cx88-mpeg.c
+++ b/linux/drivers/media/video/cx88/cx88-mpeg.c
@@ -64,19 +64,11 @@ static void request_module_async(void *ptr){
static void request_module_async(struct work_struct *work){
struct cx8802_dev *dev=container_of(work, struct cx8802_dev, request_module_wk);
#endif
- switch (cx88_boards[dev->core->board].mpeg) {
- case CX88_MPEG_BLACKBIRD:
- request_module("cx88-blackbird");
- break;
- case CX88_MPEG_DVB:
+
+ if (cx88_boards[dev->core->board].mpeg & CX88_MPEG_DVB)
request_module("cx88-dvb");
- break;
- case CX88_BOARD_NONE:
- /* reaching this one isn't possible */
- break;
- default:
- printk("cx88-mpeg.c: WARNING extension [%d] is not supposed to be supported\n",cx88_boards[dev->core->board].mpeg);
- }
+ if (cx88_boards[dev->core->board].mpeg & CX88_MPEG_BLACKBIRD)
+ request_module("cx88-blackbird");
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)