diff options
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-ioctl.c')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 1ffa760b8545..9c7361871d78 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
@@ -183,13 +183,14 @@ int omapfb_update_window(struct fb_info *fbi, | |||
183 | struct omapfb2_device *fbdev = ofbi->fbdev; | 183 | struct omapfb2_device *fbdev = ofbi->fbdev; |
184 | int r; | 184 | int r; |
185 | 185 | ||
186 | if (!lock_fb_info(fbi)) | ||
187 | return -ENODEV; | ||
186 | omapfb_lock(fbdev); | 188 | omapfb_lock(fbdev); |
187 | lock_fb_info(fbi); | ||
188 | 189 | ||
189 | r = omapfb_update_window_nolock(fbi, x, y, w, h); | 190 | r = omapfb_update_window_nolock(fbi, x, y, w, h); |
190 | 191 | ||
191 | unlock_fb_info(fbi); | ||
192 | omapfb_unlock(fbdev); | 192 | omapfb_unlock(fbdev); |
193 | unlock_fb_info(fbi); | ||
193 | 194 | ||
194 | return r; | 195 | return r; |
195 | } | 196 | } |