diff options
-rw-r--r-- | drivers/media/video/cx88/cx88-mpeg.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c index cd01d23cd2f1..db98f1fd3965 100644 --- a/drivers/media/video/cx88/cx88-mpeg.c +++ b/drivers/media/video/cx88/cx88-mpeg.c | |||
@@ -53,19 +53,11 @@ MODULE_PARM_DESC(debug,"enable debug messages [mpeg]"); | |||
53 | static void request_module_async(struct work_struct *work) | 53 | static void request_module_async(struct work_struct *work) |
54 | { | 54 | { |
55 | struct cx8802_dev *dev=container_of(work, struct cx8802_dev, request_module_wk); | 55 | struct cx8802_dev *dev=container_of(work, struct cx8802_dev, request_module_wk); |
56 | switch (cx88_boards[dev->core->board].mpeg) { | 56 | |
57 | case CX88_MPEG_BLACKBIRD: | 57 | if (cx88_boards[dev->core->board].mpeg & CX88_MPEG_DVB) |
58 | request_module("cx88-blackbird"); | ||
59 | break; | ||
60 | case CX88_MPEG_DVB: | ||
61 | request_module("cx88-dvb"); | 58 | request_module("cx88-dvb"); |
62 | break; | 59 | if (cx88_boards[dev->core->board].mpeg & CX88_MPEG_BLACKBIRD) |
63 | case CX88_BOARD_NONE: | 60 | request_module("cx88-blackbird"); |
64 | /* reaching this one isn't possible */ | ||
65 | break; | ||
66 | default: | ||
67 | printk("cx88-mpeg.c: WARNING extension [%d] is not supposed to be supported\n",cx88_boards[dev->core->board].mpeg); | ||
68 | } | ||
69 | } | 61 | } |
70 | 62 | ||
71 | static void request_modules(struct cx8802_dev *dev) | 63 | static void request_modules(struct cx8802_dev *dev) |