ARM: OMAP 2: Camera: Fix device release
authorSakari Ailus <sakari.ailus@nokia.com>
Tue, 4 Dec 2007 15:48:59 +0000 (17:48 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 5 Dec 2007 22:41:39 +0000 (14:41 -0800)
If streaming wasn't stopped before a file handle was closed,
videobuf_streamoff got called after cam->streaming had been set NULL,
causing an oops. Call videobuf_streamoff a bit earlier instead.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found