media: hdpvr: register the video node at the end of probe
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 19 Mar 2013 12:34:58 +0000 (09:34 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:44:33 +0000 (06:44 -0700)
commit092bc21ef043d7fb4515f54ccbd17d98a20e76fb
tree5e2745675082df259785a5e78e9b83997bc958ce
parent9ef2f22482a5a89c8ddac55c79d81b26292e59bf
media: hdpvr: register the video node at the end of probe

commit 280847b532433ffe7a22795f926327805a127162 upstream.

Video nodes can be used at once after registration, so make sure the full
initialization is done before registering them.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Jianguo Wu <wujianguo@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/video/hdpvr/hdpvr-core.c