fbdev: directly call fbcon_suspended/resumed
With the sh_mobile notifier removed we can just directly call the fbcon code here. v2: Remove now unused local variable. v3: fixup !CONFIG_FRAMEBUFFER_CONSOLE, noticed by kbuild Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Kees Cook <keescook@chromium.org> Cc: Konstantin Khorenko <khorenko@virtuozzo.com> Cc: Yisheng Xie <ysxie@foxmail.com> Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl> Cc: Peter Rosin <peda@axentia.se> Cc: Mikulas Patocka <mpatocka@redhat.com> Cc: linux-fbdev@vger.kernel.org Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-22-daniel.vetter@ffwll.ch
This commit is contained in:
@@ -7,12 +7,16 @@ void __exit fb_console_exit(void);
|
||||
int fbcon_fb_registered(struct fb_info *info);
|
||||
void fbcon_fb_unregistered(struct fb_info *info);
|
||||
void fbcon_fb_unbind(struct fb_info *info);
|
||||
void fbcon_suspended(struct fb_info *info);
|
||||
void fbcon_resumed(struct fb_info *info);
|
||||
#else
|
||||
static inline void fb_console_init(void) {}
|
||||
static inline void fb_console_exit(void) {}
|
||||
static inline int fbcon_fb_registered(struct fb_info *info) { return 0; }
|
||||
static inline void fbcon_fb_unregistered(struct fb_info *info) {}
|
||||
static inline void fbcon_fb_unbind(struct fb_info *info) {}
|
||||
static inline void fbcon_suspended(struct fb_info *info) {}
|
||||
static inline void fbcon_resumed(struct fb_info *info) {}
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_FBCON_H */
|
||||
|
Reference in New Issue
Block a user