[media] gspca_gl860: Add a present check to sd_stop0
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 May 2012 09:53:27 +0000 (06:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:33:25 +0000 (09:33 -0300)
commit45432d41a2eebf5daaacb81de37fbfffc0a8faa7
treeff91ee867101be41f6ecdcf67a897d0194e2b51b
parent8cd058423f22072c1147d3e99161252e1e72333a
[media] gspca_gl860: Add a present check to sd_stop0

The sensor specific dev_post_unset_alt functions all try to write to the
bridge, and none free any memory, so they should be skipped if stop0
is called on disconnection.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gl860/gl860.c