Skip to content

Commit df3865f

Browse files
committed
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang: "One PM related driver bugfix and a MAINTAINERS update" * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: MAINTAINERS: Update the ocores i2c bus driver maintainer, etc i2c: omap: Use noirq system sleep pm ops to idle device for suspend
2 parents e8b5060 + 13c80dd commit df3865f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11312,10 +11312,12 @@ F: include/dt-bindings/
1131211312

1131311313
OPENCORES I2C BUS DRIVER
1131411314
M: Peter Korsgaard <peter@korsgaard.com>
11315+
M: Andrew Lunn <andrew@lunn.ch>
1131511316
L: linux-i2c@vger.kernel.org
1131611317
S: Maintained
1131711318
F: Documentation/i2c/busses/i2c-ocores
1131811319
F: drivers/i2c/busses/i2c-ocores.c
11320+
F: include/linux/platform_data/i2c-ocores.h
1131911321

1132011322
OPENRISC ARCHITECTURE
1132111323
M: Jonas Bonn <jonas@southpole.se>

drivers/i2c/busses/i2c-omap.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,7 @@ static int omap_i2c_remove(struct platform_device *pdev)
15001500
return 0;
15011501
}
15021502

1503-
#ifdef CONFIG_PM
1504-
static int omap_i2c_runtime_suspend(struct device *dev)
1503+
static int __maybe_unused omap_i2c_runtime_suspend(struct device *dev)
15051504
{
15061505
struct omap_i2c_dev *omap = dev_get_drvdata(dev);
15071506

@@ -1527,7 +1526,7 @@ static int omap_i2c_runtime_suspend(struct device *dev)
15271526
return 0;
15281527
}
15291528

1530-
static int omap_i2c_runtime_resume(struct device *dev)
1529+
static int __maybe_unused omap_i2c_runtime_resume(struct device *dev)
15311530
{
15321531
struct omap_i2c_dev *omap = dev_get_drvdata(dev);
15331532

@@ -1542,20 +1541,18 @@ static int omap_i2c_runtime_resume(struct device *dev)
15421541
}
15431542

15441543
static const struct dev_pm_ops omap_i2c_pm_ops = {
1544+
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
1545+
pm_runtime_force_resume)
15451546
SET_RUNTIME_PM_OPS(omap_i2c_runtime_suspend,
15461547
omap_i2c_runtime_resume, NULL)
15471548
};
1548-
#define OMAP_I2C_PM_OPS (&omap_i2c_pm_ops)
1549-
#else
1550-
#define OMAP_I2C_PM_OPS NULL
1551-
#endif /* CONFIG_PM */
15521549

15531550
static struct platform_driver omap_i2c_driver = {
15541551
.probe = omap_i2c_probe,
15551552
.remove = omap_i2c_remove,
15561553
.driver = {
15571554
.name = "omap_i2c",
1558-
.pm = OMAP_I2C_PM_OPS,
1555+
.pm = &omap_i2c_pm_ops,
15591556
.of_match_table = of_match_ptr(omap_i2c_of_match),
15601557
},
15611558
};

0 commit comments

Comments
 (0)