[media] staging: as102: Fix the dvb device registration error path
authorSylwester Nawrocki <snjw23@gmail.com>
Sun, 6 Nov 2011 19:31:43 +0000 (16:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 8 Nov 2011 13:29:22 +0000 (11:29 -0200)
commit880102898f19cf9f9ba36dc9d838b5476645ce00
treeebad61fd4798bb93a4f14b6b3e1a9ce2a7b14f0f
parentfa1a13f621c6de8c3a6e6fa8b3dd66094f0f660a
[media] staging: as102: Fix the dvb device registration error path

Release already acquired resources when error happens during
devices registration steps.
Use dev_err()  where struct device is available, instead of driver
specific err().

Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/as102/as102_drv.c