]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Encourage move to dev_pm_ops by warning on use of legacy methods
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 14 Jan 2011 21:03:50 +0000 (22:03 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 14 Jan 2011 21:03:50 +0000 (22:03 +0100)
commit1590e4ee3d85fc8342e61b36a8d70ea30573d946
treeff22016d827ca142253788e08afbc6e916b36b8a
parentd5b028a30a5389a824b6885b499d4a7126ca2f44
i2c: Encourage move to dev_pm_ops by warning on use of legacy methods

Since the PM core wishes to transition away from the legacy suspend
and resume methods and since removing them makes using PM core features
like runtime PM much easier start warning when a driver is registered
using the legacy methods.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c