touch: raydium: Fix reboot issue
Fix reboot issue by resolving memory leaks. Change-Id: I150c6eca0fcd955a701ba3cbe7e29166ec27e8b6 Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
d665495c2c
commit
77e650b9f7
@@ -2533,8 +2533,6 @@ if (active_panel)
|
|||||||
drm_panel_notifier_unregister(active_panel, &g_raydium_ts->fb_notif);
|
drm_panel_notifier_unregister(active_panel, &g_raydium_ts->fb_notif);
|
||||||
#endif/*end of CONFIG_FB*/
|
#endif/*end of CONFIG_FB*/
|
||||||
input_unregister_device(g_raydium_ts->input_dev);
|
input_unregister_device(g_raydium_ts->input_dev);
|
||||||
if (g_raydium_ts->input_dev)
|
|
||||||
input_free_device(g_raydium_ts->input_dev);
|
|
||||||
g_raydium_ts->input_dev = NULL;
|
g_raydium_ts->input_dev = NULL;
|
||||||
gpio_free(g_raydium_ts->rst_gpio);
|
gpio_free(g_raydium_ts->rst_gpio);
|
||||||
|
|
||||||
@@ -2583,7 +2581,7 @@ if (active_panel)
|
|||||||
drm_panel_notifier_unregister(active_panel, &g_raydium_ts->fb_notif);
|
drm_panel_notifier_unregister(active_panel, &g_raydium_ts->fb_notif);
|
||||||
#endif/*end of CONFIG_FB*/
|
#endif/*end of CONFIG_FB*/
|
||||||
input_unregister_device(g_raydium_ts->input_dev);
|
input_unregister_device(g_raydium_ts->input_dev);
|
||||||
input_free_device(g_raydium_ts->input_dev);
|
g_raydium_ts->input_dev = NULL;
|
||||||
gpio_free(g_raydium_ts->rst_gpio);
|
gpio_free(g_raydium_ts->rst_gpio);
|
||||||
|
|
||||||
#ifdef CONFIG_RM_SYSFS_DEBUG
|
#ifdef CONFIG_RM_SYSFS_DEBUG
|
||||||
|
Reference in New Issue
Block a user