V4L/DVB (7689): pvrusb2-dvb: Rework module tear-down
authorMike Isely <isely@pobox.com>
Sat, 9 Feb 2008 18:44:30 +0000 (15:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:46 +0000 (14:09 -0300)
commit891d99efc5be16d2762bdbb9d0486f7250990eee
tree42bf20210b0c44a43943b90acb8edae50f7ce4e2
parenta36416d0a70899d3724d2e69e378062e06252a41
V4L/DVB (7689): pvrusb2-dvb: Rework module tear-down

Rather than making an explicit call to tear down the pvrusb2-dvb
module, use the callback in the pvr2_channel structure.  This has the
advantage that now tear-down only happens when it makes sense.  The
previous implementation had scenarios where it was possible for the
tear-down call to happen without a prior initialization.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-dvb.c
drivers/media/video/pvrusb2/pvrusb2-dvb.h
drivers/media/video/pvrusb2/pvrusb2-main.c