Browse Source

Merge "touch: raydium: Fix reboot issue"

qctecmdr 1 year ago
parent
commit
345e2d0cba
1 changed files with 1 additions and 3 deletions
  1. 1 3
      raydium/raydium_driver.c

+ 1 - 3
raydium/raydium_driver.c

@@ -2533,8 +2533,6 @@ if (active_panel)
 	drm_panel_notifier_unregister(active_panel, &g_raydium_ts->fb_notif);
 #endif/*end of CONFIG_FB*/
 	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;
 	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);
 #endif/*end of CONFIG_FB*/
 	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);
 
 #ifdef CONFIG_RM_SYSFS_DEBUG