Skip to content

Commit 2f04098

Browse files
committed
Merge branch 'at91-5.10-trunk/flexcom' into linux-5.10-at91
2 parents 55173d5 + 97ec5fd commit 2f04098

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

drivers/mfd/atmel-flexcom.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ static const struct of_device_id atmel_flexcom_of_match[] = {
8787
};
8888
MODULE_DEVICE_TABLE(of, atmel_flexcom_of_match);
8989

90-
#ifdef CONFIG_PM_SLEEP
91-
static int atmel_flexcom_resume(struct device *dev)
90+
static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev)
9291
{
9392
struct atmel_flexcom *ddata = dev_get_drvdata(dev);
9493
int err;
@@ -105,16 +104,16 @@ static int atmel_flexcom_resume(struct device *dev)
105104

106105
return 0;
107106
}
108-
#endif
109107

110-
static SIMPLE_DEV_PM_OPS(atmel_flexcom_pm_ops, NULL,
111-
atmel_flexcom_resume);
108+
static const struct dev_pm_ops atmel_flexcom_pm_ops = {
109+
.resume_noirq = atmel_flexcom_resume_noirq,
110+
};
112111

113112
static struct platform_driver atmel_flexcom_driver = {
114113
.probe = atmel_flexcom_probe,
115114
.driver = {
116115
.name = "atmel_flexcom",
117-
.pm = &atmel_flexcom_pm_ops,
116+
.pm = pm_ptr(&atmel_flexcom_pm_ops),
118117
.of_match_table = atmel_flexcom_of_match,
119118
},
120119
};

0 commit comments

Comments
 (0)