OMAP2+: hwmod: ignore attempts to re-setup a hwmod
authorPaul Walmsley <paul@pwsan.com>
Wed, 23 Feb 2011 07:14:07 +0000 (00:14 -0700)
committerPaul Walmsley <paul@pwsan.com>
Mon, 28 Feb 2011 20:55:08 +0000 (13:55 -0700)
commit48d54f3fd20b435311f295b3bca3570096a2ac83
tree8ab93d331b03aa11ff12e28bfa1bc041d23455f6
parent569edd705cc4e81a9129b5557f1fb259e21418a9
OMAP2+: hwmod: ignore attempts to re-setup a hwmod

Previously, if a hwmod had already been set up, and the code attempted
to set up the hwmod again, an error would be returned.  This is not
really useful behavior if we wish to allow the OMAP core code to setup
the hwmods needed for the Linux clocksources and clockevents before
the rest of the hwmods are setup.  So, instead of generating errors,
just ignore the attempt to re-setup the hwmod.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: BenoƮt Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/omap_hwmod.c