nova0flash: Fix unused lable build error

Why:
    Fix unsed err_register_drm_notif_failed build error when DRM is 
    not define

Change-Id: I660339f2605016892387ec0a5d8ec2666e891122
Signed-off-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-on: https://gerrit.mot.com/2694111
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
Yan Zhang committed 2023-07-30 09:06:21 -05:00
1 parent 23b881c969
commit e308efd907
2 files changed
+3 -2

No files matched your search

@@ -3235,7 +3235,7 @@ err_create_touchscreen_class_failed:
#if defined(CONFIG_INPUT_TOUCHSCREEN_MMI)
nvt_mmi_init(ts, false);
#endif
err_register_drm_notif_failed:
#ifndef CONFIG_INPUT_TOUCHSCREEN_MMI
#if (((LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0))) || defined(NVT_CONFIG_DRM_PANEL))
#if defined(CONFIG_DRM)
@@ -3248,6 +3248,7 @@ err_register_drm_notif_failed:
NVT_ERR("Error occurred while unregistering drm_notifier.\n");
#endif
}
err_register_drm_notif_failed:
#endif
#else //vension code < 5.4.0
#if defined(CONFIG_FB)
@@ -39,7 +39,7 @@
#ifdef NOVATECH_PEN_NOTIFIER
#include <linux/pen_detection_notify.h>
#endif
#ifdef NVT_CONFIG_DRM_PANEL
#if (!defined(CONFIG_INPUT_TOUCHSCREEN_MMI) && defined(NVT_CONFIG_DRM_PANEL))
#if IS_ENABLED(CONFIG_QCOM_PANEL_EVENT_NOTIFIER)
#define NVT_DRM_PANEL_EVENT_NOTIFICATIONS
#include <linux/soc/qcom/panel_event_notifier.h>