platform: nvadsp: fix ape emc dfs exit
Nitin Kumbhar [Tue, 4 Nov 2014 12:55:24 +0000 (17:55 +0530)]
If CONFIG_TEGRA_EMC_APE_DFS config is disabled, then
skip APE EMC DFS de-initialization from nvadsp_remove().

Bug 1461655

Change-Id: I7686b216477eb8c7681877c58bae2b1bdb685b66
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: http://git-master/r/593330
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

drivers/platform/tegra/nvadsp/dev.c

index 39d7499..f0e94b8 100644 (file)
@@ -478,7 +478,9 @@ err:
 
 static int nvadsp_remove(struct platform_device *pdev)
 {
+#ifdef CONFIG_TEGRA_EMC_APE_DFS
        emc_dfs_exit();
+#endif
        aram_exit();
        return 0;
 }