From: Ulf Hansson Date: Mon, 17 Feb 2014 15:20:41 +0000 (+0100) Subject: i2c: nomadik: Fixup deployment of runtime PM X-Git-Tag: v3.15-rc1~41^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e46d397550835fc41eeaee08afb37ddeb6a01e72;p=pandora-kernel.git i2c: nomadik: Fixup deployment of runtime PM Since the runtime PM state is expected to be active according to the amba bus, we must align our behaviour while probing to it. Moreover, this is needed to be able to have the driver fully functional without depending on CONFIG_RUNTIME_PM. Since the device is active while a successful probe has been completed, the reference counting for the clock will be screwed up and never reach zero. We resolve this by implementing runtime PM callbacks and let them handle the resources accordingly, including the clock. Signed-off-by: Ulf Hansson [wsa: s/#if/#ifdef/] Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed