From fce1d8835485265fc4fefaa83d94d224aecbb89b Mon Sep 17 00:00:00 2001 From: Miguel Vadillo Date: Tue, 5 Jul 2011 20:58:02 -0500 Subject: omap: rpres: skip the creation of already created devices Some devices like: - iva - dsp - fdif are being created for pm purposes and create them again is not recommended. For these devices the pm framework is exporting api's to get them. If a resource is already created use the api to get the device and add the platform data and information needed for rpres to control such device. Change-Id: I6640883f911f4c21d204c20ded1ced104af5ed7c Signed-off-by: Miguel Vadillo --- arch/arm/plat-omap/include/plat/rpres.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm') diff --git a/arch/arm/plat-omap/include/plat/rpres.h b/arch/arm/plat-omap/include/plat/rpres.h index a1e8c7b..0dfb781 100644 --- a/arch/arm/plat-omap/include/plat/rpres.h +++ b/arch/arm/plat-omap/include/plat/rpres.h @@ -40,6 +40,7 @@ struct rpres_platform_data { struct rpres_ops *ops; struct clk *opt_clk; const char *opt_clk_name; + struct device *(*get_dev)(void); }; struct rpres { -- cgit v1.1