aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-03-01 05:25:39 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-01 05:29:02 -0500
commit9bd58e77e656abe08f3f781d982bc9e29167e1c3 (patch)
tree955b640fc31918ab652e4c456cf580673ea42902 /drivers
parent4a98b212768a3ba98c6508e0d5ca7470d3bccec3 (diff)
[media] smsusb: fix the default delivery system setting
There are two issues on the default delivery system setting for smsusb: 1) instead of filling the delivery system for the per-client frontend.ops, it were changing the global structure; 2) The client->frontend.ops copy were keeping the previous value of the template. So, the first time the device was inserted, it was using the wrong value. Reported-by: Eddi De Pieri <eddi@depieri.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/siano/smsdvb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index 654685c9303e..e2dc80da82cc 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -872,11 +872,11 @@ static int smsdvb_hotplug(struct smscore_device_t *coredev,
872 switch (smscore_get_device_mode(coredev)) { 872 switch (smscore_get_device_mode(coredev)) {
873 case DEVICE_MODE_DVBT: 873 case DEVICE_MODE_DVBT:
874 case DEVICE_MODE_DVBT_BDA: 874 case DEVICE_MODE_DVBT_BDA:
875 smsdvb_fe_ops.delsys[0] = SYS_DVBT; 875 client->frontend.ops.delsys[0] = SYS_DVBT;
876 break; 876 break;
877 case DEVICE_MODE_ISDBT: 877 case DEVICE_MODE_ISDBT:
878 case DEVICE_MODE_ISDBT_BDA: 878 case DEVICE_MODE_ISDBT_BDA:
879 smsdvb_fe_ops.delsys[0] = SYS_ISDBT; 879 client->frontend.ops.delsys[0] = SYS_ISDBT;
880 break; 880 break;
881 } 881 }
882 882