Commit 877cdf39 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Greg Kroah-Hartman

drivers/misc/ti-st: check chip_awake NULL check

Before calling on any of the platform hooks, shared transport driver checks
for the validity of the platform hooks as to whether it is provided or not.
A wrong function was being checked for, before the chip_awake hook was called
by the HCI-LL sleep logic handler. This patch corrects the check.
Signed-off-by: default avatarPavan Savoy <pavan_savoy@ti.com>
Signed-off-by: default avatarMatthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8565adbc
...@@ -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);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment