Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 346a850e authored by Manuel Traut's avatar Manuel Traut Committed by Dmitry Torokhov
Browse files

Input: usb1400_ts - fix access to "device data" in resume function



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
d9105c2b aka "[ARM] 5184/1: Split ucb1400_ts into core and touchscreen"

Signed-off-by: default avatarManuel Traut <manut@linutronix.de>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent f9fcfc3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {
		/*