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

Commit c42bfd7f authored by NeilBrown's avatar NeilBrown Committed by Dmitry Torokhov
Browse files

Input: twl4030-pwrbutton - ensure a wakeup event is recorded.



This button is treated as a wakeup source, so we need to initialise it
correctly.

Without the device_init_wakeup() call, dev->power.wakeup will
be NULL, and pm_wakeup_event() will do nothing.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e4742b1e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -85,6 +85,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
	}
	}


	platform_set_drvdata(pdev, pwr);
	platform_set_drvdata(pdev, pwr);
	device_init_wakeup(&pdev->dev, true);


	return 0;
	return 0;
}
}