From: Matthias Kaehlcke Date: Fri, 3 Aug 2012 19:49:44 +0000 (-0500) Subject: drivers/misc/ti-st: check chip_awake NULL check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=877cdf3949cc67d00677a1dfb913001f324ac40d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Pavan Savoy Signed-off-by: Matthias Kaehlcke Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/ti-st/st_ll.c b/drivers/misc/ti-st/st_ll.c index 1ff460a8e9c7..93b4d67cc4a3 100644 --- a/drivers/misc/ti-st/st_ll.c +++ b/drivers/misc/ti-st/st_ll.c @@ -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); }