Skip to contentSkip to conversation

ti-st: Fix check for pdata->chip_awake function pointer

PATCH New Matthias Kaehlcke 1 participant 1 message Aug 2, 2012 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-st: Fix check for pdata->chip_awake function pointer

ll_device_want_to_wakeup(): Fix the NULL pointer check on pdata->chip_awake, which is performed on the wrong function pointer

---
 drivers/misc/ti-st/st_ll.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ti-st/st_ll.c +1 -1
index 1ff460a..93b4d67 100644
@@ -87,7 +87,7 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data)
 	/* communicate to platform about chip wakeup */
 	kim_data = st_data->kim_data;
 	pdata = kim_data->kim_pdev->dev.platform_data;
-	if (pdata->chip_asleep)
+	if (pdata->chip_awake)
 		pdata->chip_awake(NULL);
 }
 
Signature · 1 line
1.7.10