]> Pileus Git - ~andy/linux/commit
OMAP: hwmod: Fix omap_hwmod_reset wrong state test
authorLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 21 Sep 2010 16:34:09 +0000 (10:34 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 21 Sep 2010 21:11:02 +0000 (15:11 -0600)
commit9b579114efc4bd00532de33c783b4cb4638910ff
tree3dae39799b1b7a2e19d596431b9d79348d29be3f
parent3827f9492bdff045ae57fe67e65ce7e259ed4219
OMAP: hwmod: Fix omap_hwmod_reset wrong state test

The reset function wrongly used the state flag as a bit mask and was trying
to re-enable after a reset.

hwmod is still enabled for the PRCM point of view after a softreset
so there is no need to re-enable.

Remove the state check from omap_hwmod_reset since the _reset
function is checking that as well and in addition can generate
a warning

Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
[b-cousson@ti.com: remove the wrong test, remove the re-enable]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Rajendra Nayak <rnayak@ti.com>
arch/arm/mach-omap2/omap_hwmod.c