From 4498c0504222e76b9323f1808fcd293842fd46d2 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Fri, 21 May 2021 11:05:46 +0800 Subject: [PATCH] soc: rockchip: system_monitor: Drop FB_EARLY_EVENT_BLANK support Change-Id: I4fd76bc67578fbf12acaa9ed3004b4a565dd7a75 Signed-off-by: Finley Xiao --- .../soc/rockchip/rockchip_system_monitor.c | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/drivers/soc/rockchip/rockchip_system_monitor.c b/drivers/soc/rockchip/rockchip_system_monitor.c index d46d0d4e94ea..357631ce716b 100644 --- a/drivers/soc/rockchip/rockchip_system_monitor.c +++ b/drivers/soc/rockchip/rockchip_system_monitor.c @@ -1454,24 +1454,15 @@ static int rockchip_monitor_fb_notifier(struct notifier_block *nb, { struct fb_event *event = ptr; - switch (action) { - case FB_EARLY_EVENT_BLANK: - switch (*((int *)event->data)) { - case FB_BLANK_UNBLANK: - rockchip_clear_system_status(SYS_STATUS_SUSPEND); - break; - default: - break; - } + if (action != FB_EVENT_BLANK) + return NOTIFY_OK; + + switch (*((int *)event->data)) { + case FB_BLANK_UNBLANK: + rockchip_clear_system_status(SYS_STATUS_SUSPEND); break; - case FB_EVENT_BLANK: - switch (*((int *)event->data)) { - case FB_BLANK_POWERDOWN: - rockchip_set_system_status(SYS_STATUS_SUSPEND); - break; - default: - break; - } + case FB_BLANK_POWERDOWN: + rockchip_set_system_status(SYS_STATUS_SUSPEND); break; default: break;