From: Hans Verkuil Date: Wed, 12 Jun 2013 09:04:04 +0000 (-0300) Subject: [media] v4l2-device: check if already unregistered X-Git-Tag: v3.11-rc1~17^2~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e882e3bc97c7774b93f3db483d2e75767b5cad1;p=pandora-kernel.git [media] v4l2-device: check if already unregistered It was possible to unregister an already unregistered v4l2_device struct. Add a check whether that already happened and just return if that was the case. Also refuse to register a v4l2_device if both the dev and name fields are empty. A warning was already produced in that case, but since the name field is now used to detect whether or not the v4l2_device was already unregistered this particular combination should be rejected. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed