]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitf4e8db31a83ad019e9ae06edb9c2f89de66bc7b7
treeff22016d827ca142253788e08afbc6e916b36b8a
parentd529de2994880d345d7588f92d5a426f63089ba3
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