diff options
| -rw-r--r-- | drivers/video/omap2/omapfb/omapfb-ioctl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index 994f6a091b49..6f435450987e 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
| @@ -610,6 +610,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
| 610 | struct omapfb_vram_info vram_info; | 610 | struct omapfb_vram_info vram_info; |
| 611 | struct omapfb_tearsync_info tearsync_info; | 611 | struct omapfb_tearsync_info tearsync_info; |
| 612 | struct omapfb_display_info display_info; | 612 | struct omapfb_display_info display_info; |
| 613 | u32 crt; | ||
| 613 | } p; | 614 | } p; |
| 614 | 615 | ||
| 615 | int r = 0; | 616 | int r = 0; |
| @@ -768,6 +769,17 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
| 768 | r = -EFAULT; | 769 | r = -EFAULT; |
| 769 | break; | 770 | break; |
| 770 | 771 | ||
| 772 | case FBIO_WAITFORVSYNC: | ||
| 773 | if (get_user(p.crt, (__u32 __user *)arg)) { | ||
| 774 | r = -EFAULT; | ||
| 775 | break; | ||
| 776 | } | ||
| 777 | if (p.crt != 0) { | ||
| 778 | r = -ENODEV; | ||
| 779 | break; | ||
| 780 | } | ||
| 781 | /* FALLTHROUGH */ | ||
| 782 | |||
| 771 | case OMAPFB_WAITFORVSYNC: | 783 | case OMAPFB_WAITFORVSYNC: |
| 772 | DBG("ioctl WAITFORVSYNC\n"); | 784 | DBG("ioctl WAITFORVSYNC\n"); |
| 773 | if (!display) { | 785 | if (!display) { |
