Hi Shuah, Em Wed, 7 Jan 2015 18:44:26 -0700 Shuah Khan <shuahkhan@xxxxxxxxx> escreveu: > > + > > /* Create v4l2 device */ > > + dev->v4l2_dev.mdev = dev->media_dev; > > When media_device_register(mdev) fails in cx231xx_media_device_register(), > media_dev is null? The above will simply assign null to dev->v4l2_dev.mdev > Is that correct? Yes, this is intentional. If the media controls fail to register, everything will keep working, except for the media controller itself. That sounds better, IMHO, than to have a complete failure. Cheers, Mauro -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html