|
@@ -36,6 +36,10 @@ static int debug;
|
|
|
module_param(debug, int, 0644);
|
|
|
MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
|
|
|
|
|
|
+static int xc5000_load_fw_on_attach;
|
|
|
+module_param_named(init_fw, xc5000_load_fw_on_attach, int, 0644);
|
|
|
+MODULE_PARM_DESC(init_fw, "Load firmware during driver initialization.");
|
|
|
+
|
|
|
#define dprintk(level,fmt, arg...) if (debug >= level) \
|
|
|
printk(KERN_INFO "%s: " fmt, "xc5000", ## arg)
|
|
|
|
|
@@ -972,6 +976,9 @@ struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe,
|
|
|
|
|
|
fe->tuner_priv = priv;
|
|
|
|
|
|
+ if (xc5000_load_fw_on_attach)
|
|
|
+ xc5000_init(fe);
|
|
|
+
|
|
|
return fe;
|
|
|
}
|
|
|
EXPORT_SYMBOL(xc5000_attach);
|