Skip to content

Commit

Permalink
ti-st: Fix check for pdata->chip_awake function pointer
Browse files Browse the repository at this point in the history
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: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
mkaehlcke authored and gregkh committed Aug 16, 2012
1 parent a2f6985 commit f3d9d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/ti-st/st_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f3d9d36

Please sign in to comment.