mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
mc-utils: Remove get_dram_num_channels_t26X
The function get_dram_num_channels_t26X() is identical to the function get_dram_num_channels_t23x() and so get rid of the get_dram_num_channels_t26X() function and just use get_dram_num_channels_t23x(). Bug 5054840 Change-Id: I5647bf9a946dc06e692b1a2fc44f750bc68ec65d Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3362555 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Ketan Patil <ketanp@nvidia.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/**
|
||||
* Copyright (c) 2022-2025, NVIDIA CORPORATION. All rights reserved.
|
||||
*/
|
||||
// SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
@@ -137,11 +135,6 @@ static u8 get_dram_num_channels_t23x(void)
|
||||
return ch_num;
|
||||
}
|
||||
|
||||
static u8 get_dram_num_channels_t26X(void)
|
||||
{
|
||||
return ch_num;
|
||||
}
|
||||
|
||||
u8 get_dram_num_channels(void)
|
||||
{
|
||||
if (ops && ops->get_dram_num_channels)
|
||||
@@ -190,7 +183,7 @@ static struct mc_utils_ops mc_utils_t23x_ops = {
|
||||
static struct mc_utils_ops mc_utils_t26x_ops = {
|
||||
.emc_freq_to_bw = emc_freq_to_bw_t23x,
|
||||
.emc_bw_to_freq = emc_bw_to_freq_t23x,
|
||||
.get_dram_num_channels = get_dram_num_channels_t26X,
|
||||
.get_dram_num_channels = get_dram_num_channels_t23x,
|
||||
};
|
||||
|
||||
static int __init tegra_mc_utils_init_t26x(void)
|
||||
|
||||
Reference in New Issue
Block a user