ARM: OMAP3+: dpll: Configure autoidle mode only if it's supported
authorVaibhav Bedia <vaibhav.bedia@ti.com>
Tue, 8 May 2012 05:55:30 +0000 (23:55 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 8 May 2012 05:55:30 +0000 (23:55 -0600)
commitd76316fef3f2ecec210b78a38263a06bb4f6c1b9
treed631a711e58952580f351ac519a4eaaca4580a5e
parentf1bbbb1365fdb1abe29f31d4ac455f265f9bc2ff
ARM: OMAP3+: dpll: Configure autoidle mode only if it's 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>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/dpll3xxx.c