diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-04 16:24:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-04 16:24:02 -0300 |
commit | db0a2901a32c44510d7d429358d017143a649a70 (patch) | |
tree | 4e4e41cf2e27aa4940f9c0711ca2a3bf7557a805 /drivers/media/video/pms.c | |
parent | d210baf53b699fc61aa891c177b71d7082d3b957 (diff) | |
parent | 4cce1655b26a4df1e619b2aa3d2eea1b7a6e906c (diff) |
Merge branch 'fixes_stg' of ../git_old into fixes
Diffstat (limited to 'drivers/media/video/pms.c')
-rw-r--r-- | drivers/media/video/pms.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c index 00425d74365..7c84f795db5 100644 --- a/drivers/media/video/pms.c +++ b/drivers/media/video/pms.c @@ -1019,10 +1019,23 @@ static int init_mediavision(void) * Initialization and module stuff */ +#ifndef MODULE +static int enable; +module_param(enable, int, 0); +#endif + static int __init init_pms_cards(void) { printk(KERN_INFO "Mediavision Pro Movie Studio driver 0.02\n"); +#ifndef MODULE + if (!enable) { + printk(KERN_INFO "PMS: not enabled, use pms.enable=1 to " + "probe\n"); + return -ENODEV; + } +#endif + data_port = io_port +1; if(init_mediavision()) |