drivers/misc/ti-st: check chip_awake NULL check
commit877cdf3949cc67d00677a1dfb913001f324ac40d
authorMatthias Kaehlcke <matthias@kaehlcke.net>
Fri, 3 Aug 2012 19:49:44 +0000 (3 14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 17:11:45 +0000 (16 10:11 -0700)
tree1fa6c7a0b3ce50d7329fa946a34b31249d1d7e17
parent8565adbc821487accbabe82a03c40daf7a3b92ca
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 <pavan_savoy@ti.com>
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ti-st/st_ll.c