/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; |
} |