ARM: OMAP3+: dpll: Configure autoidle mode only if its supported
authorVaibhav Bedia <vaibhav.bedia@ti.com>
Thu, 19 Jan 2012 11:06:26 +0000 (16:36 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:55 +0000 (00:44 +0530)
commit013de05e0ae804c4e85ba94081afff521b10435f
tree1aa4c6fbae0af937bcb3862607f1f2286a2b4c6b
parentb3c67ffd36c2428355179cb4fbc61b5be7071559
ARM: OMAP3+: dpll: Configure autoidle mode only if its supported

The current DPLL code enables and disables autoidle features
without checking whether the autoidle register is available.
Fix this by putting a check for the existence of the autoidle
register in the DPLL data.

With such a check in place, for DPLLs which do not support this
feature, simply skipping the autoidle_reg entry in the DPLL data
is sufficient.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
arch/arm/mach-omap2/dpll3xxx.c