From: Rafael J. Wysocki Date: Wed, 15 Aug 2012 18:56:26 +0000 (+0200) Subject: ARM: shmobile: Rework adding devices to PM domains on Mackerel X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~39^2~8^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac18e02dc022a5413219f41d000bc637c7c5d957;p=pandora-kernel.git ARM: shmobile: Rework adding devices to PM domains on Mackerel On SH7372 and Mackerel devices are added to PM domains through a series of rmobile_add_device_to_domain_td() calls where the last argument is always the same. This is quite inefficient, so add a common function for adding devices to PM domains that reads the domain-device pairs information from a table and use it during SH7372 and Mackerel initialization. Signed-off-by: Rafael J. Wysocki Acked-by: Magnus Damm --- Reading git-diff-tree failed