]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] em28xx: prefer_bulk parameter is read-only
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Dec 2012 15:14:20 +0000 (13:14 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Dec 2012 15:14:20 +0000 (13:14 -0200)
As the bulk mode is set at device's probe, it is not possible
to change it later. So, change the parameter to be read only
after modprobing.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c

index bc63b1cee808955b0e304c962d1439ec4934cfec..2129560a78239443ac25484e6af066f519f721a3 100644 (file)
@@ -62,7 +62,7 @@ module_param_array(card,  int, NULL, 0444);
 MODULE_PARM_DESC(card,     "card type");
 
 static unsigned int prefer_bulk;
-module_param(prefer_bulk, int, 0644);
+module_param(prefer_bulk, int, 0444);
 MODULE_PARM_DESC(prefer_bulk, "prefer USB bulk transfers");