platform: dce: remove use of of_irq_xxx

of_irq_xxx faimly of functions are not exported by Kernel.
use platform_irq_count and platform_get_irq APIs instead.

This patch also moves dce_platform_data elements to dce_device
struct to keep dce_platform_data constant.

Bug 3581824

Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com>
Change-Id: I5ea13ea039ef1464e678f0604a045a6ab67bc16f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2755141
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Arun Swain <arswain@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Mahesh Kumar
2022-03-24 16:50:09 +05:30
committed by Laxman Dewangan
parent df0f2d1a74
commit 5aa80075ad
2 changed files with 29 additions and 45 deletions

View File

@@ -66,16 +66,6 @@ struct tegra_dce;
* cluster data.
*/
struct dce_platform_data {
/**
* @d : Pointer to OS agnostic dce struct. Stores all runitme info
* for dce cluster elements.
*/
struct tegra_dce *d;
/**
* @max_cpu_irqs : stores maximum no. os irqs from DCE cluster to CPU
* for this platform.
*/
u8 max_cpu_irqs;
/**
* @fw_dce_addr : Stores the firmware address that DCE sees before being
* converted by AST.
@@ -228,6 +218,15 @@ struct dce_device {
* @dev : Pointer to DCE Cluster's Linux device struct.
*/
struct device *dev;
/**
* @pdata : Pointer to dce platform data struct.
*/
struct dce_platform_data *pdata;
/**
* @max_cpu_irqs : stores maximum no. os irqs from DCE cluster to CPU
* for this platform.
*/
u8 max_cpu_irqs;
/**
* @regs : Stores the cpu-mapped base address of DCE Cluster. Will be
* used for MMIO transactions to DCE elements.
@@ -275,7 +274,7 @@ static inline struct device *dev_from_dce(struct tegra_dce *d)
*/
static inline struct dce_platform_data *pdata_from_dce(struct tegra_dce *d)
{
return dev_get_drvdata(dev_from_dce(d));
return ((struct dce_device *)dev_get_drvdata(dev_from_dce(d)))->pdata;
}
/**