Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee0a7ee1 authored by Ritesh Kumar's avatar Ritesh Kumar Committed by Gerrit - the friendly Code Review server
Browse files

input: touchscreen: synaptics_tcm: Remove shutdown operation



Currently, in syna_tcm shutdown syna_tcm remove operations
are performed. If shutdown is called when resume is in
progress, it can lead to using of already freed memory in
resume function.

Change-Id: I8c226d0866e68ce6a6d22346a0678acc0cc09e46
Signed-off-by: default avatarRitesh Kumar <riteshk@codeaurora.org>
parent 5537f3dc
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -3732,11 +3732,6 @@ static int syna_tcm_remove(struct platform_device *pdev)
	return 0;
}

static void syna_tcm_shutdown(struct platform_device *pdev)
{
	syna_tcm_remove(pdev);
}

#ifdef CONFIG_PM
static const struct dev_pm_ops syna_tcm_dev_pm_ops = {
#if !defined(CONFIG_DRM) && !defined(CONFIG_FB)
@@ -3756,7 +3751,6 @@ static struct platform_driver syna_tcm_driver = {
	},
	.probe = syna_tcm_probe,
	.remove = syna_tcm_remove,
	.shutdown = syna_tcm_shutdown,
};

static int __init syna_tcm_module_init(void)