/shark/trunk/drivers/bttv/shark_bttv26.c |
21,6 → 21,7 |
#include <kernel/kern.h> |
|
extern int bttv_init_module(void); |
extern void bttv_cleanup_module(void); |
|
static int bttv_installed = FALSE; |
|
34,15 → 35,33 |
|
int BTTV26_init() { |
|
int res; |
|
if (bttv_installed == TRUE) |
return 0; |
|
videodev_init(); |
|
bttv_init_module(); |
res = bttv_init_module(); |
|
if (res != 0) { |
sys_shutdown_message("ERROR: Cannot initialize BTTV\n"); |
sys_end(); |
} |
|
bttv_installed = TRUE; |
|
return 0; |
|
} |
|
int BTTV26_close() { |
|
if (bttv_installed == FALSE) |
return 0; |
|
bttv_cleanup_module(); |
|
return 0; |
|
} |
/shark/trunk/drivers/bttv/bttv-driver.c |
2862,6 → 2862,7 |
for (i = 0; i < bttv_num; i++) { |
if (bttvs[i].video_dev->minor == minor) { |
btv = &bttvs[i]; |
bttv_reinit_bt848(btv); |
type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
break; |
} |
3809,7 → 3810,7 |
return rc; |
} |
|
static void bttv_cleanup_module(void) |
void bttv_cleanup_module(void) |
{ |
pci_unregister_driver(&bttv_pci_driver); |
return; |