Skip to content
Snippets Groups Projects
Commit f3d9d365 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Greg Kroah-Hartman
Browse files

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

Signed-off-by: default avatarMatthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a2f69853
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data) ...@@ -87,7 +87,7 @@ static void ll_device_want_to_wakeup(struct st_data_s *st_data)
/* communicate to platform about chip wakeup */ /* communicate to platform about chip wakeup */
kim_data = st_data->kim_data; kim_data = st_data->kim_data;
pdata = kim_data->kim_pdev->dev.platform_data; pdata = kim_data->kim_pdev->dev.platform_data;
if (pdata->chip_asleep) if (pdata->chip_awake)
pdata->chip_awake(NULL); pdata->chip_awake(NULL);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment