OMAP: hwmod: Move pr_debug to improve the readability
authorBenoit Cousson <b-cousson@ti.com>
Fri, 1 Jul 2011 20:54:07 +0000 (22:54 +0200)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 01:13:36 +0000 (19:13 -0600)
commit34617e2a4d331fdd8172077d8c70a0421fc136e6
tree25521ae357802e5f170c427bdafe9847b9fb0842
parent6652271a2556c086c04658dce16de2947e849ffd
OMAP: hwmod: Move pr_debug to improve the readability

Move the pr_debug at the top of the function
to trace the entry even if the first test is failing.
That help understanding that we entered the function
but failed in it.

Move the _enable last part out of the test to reduce
indentation and improve readability.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c