OSDN Git Service

soc: qcom: stop spam when IPC_LOGGING is disabled
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / tty / serial / msm_smd_tty.c
index 570a5d3..9fd78cd 100644 (file)
@@ -829,10 +829,12 @@ static struct notifier_block smd_tty_pm_nb = {
  */
 static void smd_tty_log_init(void)
 {
+#ifdef CONFIG_IPC_LOGGING
        smd_tty_log_ctx = ipc_log_context_create(SMD_TTY_LOG_PAGES,
                                                "smd_tty", 0);
        if (!smd_tty_log_ctx)
                pr_err("%s: Unable to create IPC log", __func__);
+#endif
 }
 
 static struct tty_driver *smd_tty_driver;