diff options
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r-- | drivers/video/fbmem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 4ff853fbe0be..a8eee79e117d 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -684,11 +684,13 @@ fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var) | |||
684 | 684 | ||
685 | if (!err && (flags & FBINFO_MISC_USEREVENT)) { | 685 | if (!err && (flags & FBINFO_MISC_USEREVENT)) { |
686 | struct fb_event event; | 686 | struct fb_event event; |
687 | int evnt = (var->activate & FB_ACTIVATE_ALL) ? | ||
688 | FB_EVENT_MODE_CHANGE_ALL : | ||
689 | FB_EVENT_MODE_CHANGE; | ||
687 | 690 | ||
688 | info->flags &= ~FBINFO_MISC_USEREVENT; | 691 | info->flags &= ~FBINFO_MISC_USEREVENT; |
689 | event.info = info; | 692 | event.info = info; |
690 | notifier_call_chain(&fb_notifier_list, | 693 | notifier_call_chain(&fb_notifier_list, evnt, |
691 | FB_EVENT_MODE_CHANGE, | ||
692 | &event); | 694 | &event); |
693 | } | 695 | } |
694 | } | 696 | } |