From 66674c2da3f34db34d396b0069dc97a283a6384f Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 10 Jan 2022 12:06:45 +0000 Subject: [PATCH] nvdla: Clean-up header files Remove all unneeded headers from the NVDLA driver and only include those that are necessary. JIRA LS-410 Change-Id: I49cc0cab06bb079b9f4b88acba5b4075307e3af4 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2653100 Tested-by: mobile promotions Reviewed-by: svcacv Reviewed-by: svc_kernel_abi Reviewed-by: Arvind M Reviewed-by: Praveen K Reviewed-by: Amit Sharma (SW-TEGRA) Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/host/nvdla/nvdla.c | 5 +---- drivers/video/tegra/host/nvdla/nvdla_debug.c | 6 +----- drivers/video/tegra/host/nvdla/nvdla_ioctl.c | 13 +++---------- drivers/video/tegra/host/nvdla/nvdla_queue.c | 7 +------ 4 files changed, 6 insertions(+), 25 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.c b/drivers/video/tegra/host/nvdla/nvdla.c index c19973b7..29f645f1 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.c +++ b/drivers/video/tegra/host/nvdla/nvdla.c @@ -1,7 +1,7 @@ /* * NVDLA driver for T194 * - * Copyright (c) 2016-2021, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2016-2022, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -30,12 +30,9 @@ #include #include "dev.h" -#include "bus_client.h" -#include "nvhost_acm.h" #include "flcn/flcn.h" #include "flcn/hw_flcn.h" -#include "nvhost_syncpt_unit_interface.h" #include "nvhost_gos.h" #include "t194/t194.h" diff --git a/drivers/video/tegra/host/nvdla/nvdla_debug.c b/drivers/video/tegra/host/nvdla/nvdla_debug.c index 237fb92f..a9feab36 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_debug.c +++ b/drivers/video/tegra/host/nvdla/nvdla_debug.c @@ -1,7 +1,7 @@ /* * NVDLA debug utils * - * Copyright (c) 2016 - 2021, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2016-2022, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -23,13 +23,9 @@ #include #include -#include "host1x/host1x.h" -#include "flcn/flcn.h" -#include "flcn/hw_flcn.h" #include "dla_os_interface.h" #include "nvdla/nvdla.h" #include "nvdla_debug.h" -#include "nvhost_acm.h" /* * Header in ring buffer consist (start, end) two uint32_t values. diff --git a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c index 35813525..fabfb74f 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c +++ b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c @@ -1,7 +1,7 @@ /* * NVDLA IOCTL for T194 * - * Copyright (c) 2016-2021, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2016-2022, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -22,15 +22,7 @@ #include #include -#include "dev.h" -#include "bus_client.h" -#include "nvhost_acm.h" - -#include "flcn/flcn.h" -#include "flcn/hw_flcn.h" - -#include "t194/t194.h" - +#include "host1x/host1x.h" #include "nvdla/nvdla.h" #include "nvdla/dla_queue.h" @@ -38,6 +30,7 @@ #include "nvdla/nvdla_debug.h" #include +#include #include #include "dla_os_interface.h" diff --git a/drivers/video/tegra/host/nvdla/nvdla_queue.c b/drivers/video/tegra/host/nvdla/nvdla_queue.c index 1fc2c301..8accf9ab 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_queue.c +++ b/drivers/video/tegra/host/nvdla/nvdla_queue.c @@ -23,14 +23,9 @@ #include #include #include -#include -#include "dev.h" -#include "bus_client.h" -#include "chip_support.h" -#include "nvhost_acm.h" +#include "host1x/host1x.h" -#include "nvhost_syncpt_unit_interface.h" #include "nvhost_gos.h" #include "nvdla/nvdla.h"