mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
remoteproc: k3-r5: Re-order k3_r5_release_tsp() function
The TI-SCI processor control handle, 'tsp', will be refactored from k3_r5_core struct into k3_r5_rproc struct in a future commit. So, the 'tsp' pointer will be initialized inside k3_r5_cluster_rproc_init() now. Move the k3_r5_release_tsp() function, which releases the tsp handle, above k3_r5_cluster_rproc_init(), so that the later can register the former as a devm action. Signed-off-by: Beleswar Padhi <b-padhi@ti.com> Tested-by: Judith Mendez <jm@ti.com> Reviewed-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20250513054510.3439842-7-b-padhi@ti.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
This commit is contained in:
parent
b9229c0732
commit
11d35a94d5
|
|
@ -1356,6 +1356,13 @@ static int k3_r5_core_of_get_sram_memories(struct platform_device *pdev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void k3_r5_release_tsp(void *data)
|
||||
{
|
||||
struct ti_sci_proc *tsp = data;
|
||||
|
||||
ti_sci_proc_release(tsp);
|
||||
}
|
||||
|
||||
static int k3_r5_cluster_rproc_init(struct platform_device *pdev)
|
||||
{
|
||||
struct k3_r5_cluster *cluster = platform_get_drvdata(pdev);
|
||||
|
|
@ -1495,13 +1502,6 @@ static void k3_r5_cluster_rproc_exit(void *data)
|
|||
}
|
||||
}
|
||||
|
||||
static void k3_r5_release_tsp(void *data)
|
||||
{
|
||||
struct ti_sci_proc *tsp = data;
|
||||
|
||||
ti_sci_proc_release(tsp);
|
||||
}
|
||||
|
||||
static int k3_r5_core_of_init(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user