upstream: [media] media: bt8xx: add missing put_device call
authorLevente Kurusa <levex@linux.com>
Thu, 19 Dec 2013 15:06:49 +0000 (12:06 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:41 +0000 (14:26 +0900)
commit2aa950c287199f70bccd8d94fa4829c41e09130f
tree44a2536ec8cc74d6e9f44b2c6efcb41aa3fd81c1
parent324b316c18eb7f9388983a69974474ea8751d38a
upstream: [media] media: bt8xx: add missing put_device call

This is required so that we give up the last reference to the device.
Remove the kfree() because the put_device() call will actually call
release_sub_device which in turn kfrees the device.

Signed-off-by: Levente Kurusa <levex@linux.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/bt8xx/bttv-gpio.c