diff --git a/drivers/platform/tegra/dce/dce-debug.c b/drivers/platform/tegra/dce/dce-debug.c index 947737ab..4eaf3f24 100644 --- a/drivers/platform/tegra/dce/dce-debug.c +++ b/drivers/platform/tegra/dce/dce-debug.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/platform/tegra/dce/dce-module.c b/drivers/platform/tegra/dce/dce-module.c index 865d435c..6f9e8b5d 100644 --- a/drivers/platform/tegra/dce/dce-module.c +++ b/drivers/platform/tegra/dce/dce-module.c @@ -1,23 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. - * SPDX-License-Identifier: GPL-2.0-only - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . */ #include #include +#include #include #include #include diff --git a/drivers/platform/tegra/dce/dce-util-common.c b/drivers/platform/tegra/dce/dce-util-common.c index 16f40947..8b9d5707 100644 --- a/drivers/platform/tegra/dce/dce-util-common.c +++ b/drivers/platform/tegra/dce/dce-util-common.c @@ -3,6 +3,7 @@ * SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include +#include #include #include #include diff --git a/drivers/platform/tegra/dce/include/dce.h b/drivers/platform/tegra/dce/include/dce.h index c74496c6..3ed0746f 100644 --- a/drivers/platform/tegra/dce/include/dce.h +++ b/drivers/platform/tegra/dce/include/dce.h @@ -6,7 +6,6 @@ #ifndef TEGRA_DCE_H #define TEGRA_DCE_H -#include #include #include #include @@ -214,84 +213,6 @@ struct tegra_dce { struct dce_firmware *fw_data; }; -/** - * struct dce_device - DCE data structure for storing - * linux device specific info. - */ -struct dce_device { - /** - * @d : OS agnostic dce struct. Stores all runitme info for dce cluster - * elements. - */ - struct tegra_dce d; - /** - * @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. - */ - void __iomem *regs; -#ifdef CONFIG_DEBUG_FS - /** - * @debugfs : Debugfs node for DCE Linux device. - */ - struct dentry *debugfs; - /** - * @ext_test_status : Return code for external client tests run via - * debugfs - */ - s32 ext_test_status; -#endif -}; - -/** - * dce_device_from_dce - inline function to get linux os data from the - * os agnostic struct tegra_dc - * @d : Pointer to the os agnostic tegra_dce data structure. - * - * Return : pointer to struct dce_device - */ -static inline struct dce_device *dce_device_from_dce(struct tegra_dce *d) -{ - return container_of(d, struct dce_device, d); -} - -/** - * dev_from_dce - inline function to get linux device from the - * os agnostic struct tegra_dc - * @d : Pointer to the os agnostic tegra_dce data structure. - * - * Return : pointer to struct device - */ -static inline struct device *dev_from_dce(struct tegra_dce *d) -{ - return dce_device_from_dce(d)->dev; -} - -/** - * pdata_from_dce - inline function to get dce platform data from - * the os agnostic struct tegra_dc. - * - * @d : Pointer to the os agnostic tegra_dce data structure. - * - * Return : pointer to struct device - */ -static inline struct dce_platform_data *pdata_from_dce(struct tegra_dce *d) -{ - return ((struct dce_device *)dev_get_drvdata(dev_from_dce(d)))->pdata; -} - /** * dce_set_boot_complete - updates the current dce boot complete status. *