OSDN Git Service

msm: sps: Restore ipc log destroy commands
authorJishnu Prakash <jprakash@codeaurora.org>
Fri, 24 Nov 2017 07:50:19 +0000 (13:20 +0530)
committerJishnu Prakash <jprakash@codeaurora.org>
Fri, 24 Nov 2017 07:50:19 +0000 (13:20 +0530)
Changes got reverted accidentally with commit e498154c0976
("msm: sps: Update debug message format specifier")
restoring them again.

Change-Id: I6c2c7b4d636131341139d89ff4d59b608df5da9b
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
drivers/platform/msm/sps/sps.c

index 367e0e3..59a9b91 100644 (file)
@@ -2322,8 +2322,11 @@ int sps_deregister_bam_device(unsigned long dev_handle)
        mutex_lock(&bam->lock);
        sps_bam_device_de_init(bam);
        mutex_unlock(&bam->lock);
+       ipc_log_context_destroy(bam->ipc_log0);
        ipc_log_context_destroy(bam->ipc_log1);
        ipc_log_context_destroy(bam->ipc_log2);
+       ipc_log_context_destroy(bam->ipc_log3);
+       ipc_log_context_destroy(bam->ipc_log4);
        if (bam->props.virt_size)
                (void)iounmap(bam->props.virt_addr);