Skip to content

Commit

Permalink
Input: usb1400_ts - fix access to "device data" in resume function
Browse files Browse the repository at this point in the history
platform_data != driver_data

driver data is actually the "correct" place of the struct however it is
not placed there due to the need of the ac97 struct. This is broken since
d9105c2 aka "[ARM] 5184/1: Split ucb1400_ts into core and touchscreen"

Signed-off-by: Manuel Traut <manut@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Manuel Traut authored and Dmitry Torokhov committed May 27, 2009
1 parent f9fcfc3 commit 346a850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ucb1400_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static int ucb1400_ts_remove(struct platform_device *dev)
#ifdef CONFIG_PM
static int ucb1400_ts_resume(struct platform_device *dev)
{
struct ucb1400_ts *ucb = platform_get_drvdata(dev);
struct ucb1400_ts *ucb = dev->dev.platform_data;

if (ucb->ts_task) {
/*
Expand Down

0 comments on commit 346a850

Please sign in to comment.