From: Rafael J. Wysocki Date: Sun, 5 Aug 2012 23:45:11 +0000 (+0200) Subject: PM / Runtime: Allow helpers to be called by early platform drivers X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~39^2~12^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bed2b42d9f0b411f384c5619870ab0fea5dd116b;p=pandora-kernel.git PM / Runtime: Allow helpers to be called by early platform drivers Runtime PM helper functions, like pm_runtime_get_sync(), cannot be called by early platform device drivers, because the devices' power management locks are not initialized at that time. This is quite inconvenient, so modify early_platform_add_devices() to initialize the devices power management locks as appropriate and make sure that they won't be initialized more than once if an early platform device is going to be used as a regular one later. Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed