ARM: OMAP2+: CM: move SoC specific init calls within a generic API
This gets rid of need for some exported driver APIs, and simplifies the initialization of the CM driver. Done in preparation to make CM a separate driver. The init data is now also passed to the SoC specific implementations, allowing future expansion to add feature flags etc. Signed-off-by: Tero Kristo <t-kristo@ti.com>
This commit is contained in:
@@ -352,9 +352,8 @@ static struct cm_ll_data am33xx_cm_ll_data = {
|
||||
.module_disable = &am33xx_cm_module_disable,
|
||||
};
|
||||
|
||||
int __init am33xx_cm_init(void)
|
||||
int __init am33xx_cm_init(const struct omap_prcm_init_data *data)
|
||||
{
|
||||
omap2_cm_base_init();
|
||||
return cm_register(&am33xx_cm_ll_data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user