mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
tegra: mc-hwpm: update remove driver function
Update remove function in mc-hwpm driver to include missing HWPM unregister call. Jira THWPM-8 Change-Id: I1698860647214472e75503e0fd77594e105b2913 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2924754 Reviewed-by: Adeel Raza <araza@nvidia.com> Reviewed-by: Ashish Mhetre <amhetre@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a8454b9a5f
commit
569541dfb9
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "mc-hwpm: " fmt
|
||||
@@ -248,6 +248,12 @@ static int tegra_mc_hwpm_hwpm_probe(struct platform_device *pdev)
|
||||
|
||||
static int tegra_mc_hwpm_remove(struct platform_device *pdev)
|
||||
{
|
||||
hwpm_ip_ops.ip_dev = (void *)pdev;
|
||||
hwpm_ip_ops.resource_enum = TEGRA_SOC_HWPM_RESOURCE_MSS_CHANNEL;
|
||||
hwpm_ip_ops.ip_base_address = pdev->resource[0].start;
|
||||
hwpm_ip_ops.hwpm_ip_reg_op = NULL;
|
||||
tegra_soc_hwpm_ip_unregister(&hwpm_ip_ops);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user