mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
Input: pf1550 - remove "defined but unused" warning
If 'CONFIG_PM_SLEEP' is not set, compiler throws warning for *suspend() and *resume() function for this driver. Using new 'DEFINE_SIMPLE_DEV_PM_OPS' fixes it. Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com> Link: https://patch.msgid.link/20251210211149.543928-1-vaibhavgupta40@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
c5150ffcdd
commit
673b192dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ static int pf1550_onkey_resume(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static SIMPLE_DEV_PM_OPS(pf1550_onkey_pm_ops, pf1550_onkey_suspend,
|
||||
static DEFINE_SIMPLE_DEV_PM_OPS(pf1550_onkey_pm_ops, pf1550_onkey_suspend,
|
||||
pf1550_onkey_resume);
|
||||
|
||||
static const struct platform_device_id pf1550_onkey_id[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue