Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ba92d0b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] siano: Properly initialize board information



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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ab2b599e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;