[media] siano: Properly initialize board information
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 6 Mar 2013 11:42:47 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 10:36:51 +0000 (07:36 -0300)
Board #0 is an existing one. Instead of initializing the driver
with it, use a different value to detect if board is unknown.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/siano/smscoreapi.c

index bc15dcecb25d91cd02412eb7c99bce18fec2cc23..1dab4b64d395ca387461e248d8f0b93639a1d0ba 100644 (file)
@@ -723,6 +723,7 @@ int smscore_register_device(struct smsdevice_params_t *params,
        sms_info("allocated %d buffers", dev->num_buffers);
 
        dev->mode = DEVICE_MODE_NONE;
+       dev->board_id = SMS_BOARD_UNKNOWN;
        dev->context = params->context;
        dev->device = params->device;
        dev->setmode_handler = params->setmode_handler;