diff options
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 0f9dc7dc15f1..f0bd5bcdf563 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -1124,6 +1124,14 @@ int i2c_register_driver(struct module *owner, struct i2c_driver *driver) | |||
1124 | if (res) | 1124 | if (res) |
1125 | return res; | 1125 | return res; |
1126 | 1126 | ||
1127 | /* Drivers should switch to dev_pm_ops instead. */ | ||
1128 | if (driver->suspend) | ||
1129 | pr_warn("i2c-core: driver [%s] using legacy suspend method\n", | ||
1130 | driver->driver.name); | ||
1131 | if (driver->resume) | ||
1132 | pr_warn("i2c-core: driver [%s] using legacy resume method\n", | ||
1133 | driver->driver.name); | ||
1134 | |||
1127 | pr_debug("i2c-core: driver [%s] registered\n", driver->driver.name); | 1135 | pr_debug("i2c-core: driver [%s] registered\n", driver->driver.name); |
1128 | 1136 | ||
1129 | INIT_LIST_HEAD(&driver->clients); | 1137 | INIT_LIST_HEAD(&driver->clients); |