mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
tegra: hwpm: remove support-soc-tools dependency
Property support-soc-tools was added mainly to provide user's control to enable/disable HWPM feature. Since, the same functionality can be achieved using "status" in device node, support-soc-tools property is redundant. Hence, this property is removed from HWPM device node. Update HWPM driver probe to not depend on support-soc-tools property. JIRA THWPM-48 Change-Id: Ieaa5c77e6c62a59e938832f886c5a82031139ac6 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2797449 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c7ea8476fc
commit
b7d94cea88
@@ -58,23 +58,6 @@ static char *tegra_hwpm_get_devnode(struct device *dev, umode_t *mode)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static bool tegra_hwpm_read_support_soc_tools_prop(struct platform_device *pdev)
|
||||
{
|
||||
#if defined(CONFIG_ACPI)
|
||||
/* This will be implemented in a follow-up patch */
|
||||
return true;
|
||||
#else
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
bool allow_node = of_property_read_bool(np, "support-soc-tools");
|
||||
|
||||
if (!allow_node) {
|
||||
tegra_hwpm_err(NULL, "support-soc-tools is absent");
|
||||
}
|
||||
|
||||
return allow_node;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int tegra_hwpm_get_chip_info(struct tegra_hwpm_os_linux *hwpm_linux)
|
||||
{
|
||||
#if defined(CONFIG_TEGRA_HWPM_OOT)
|
||||
@@ -109,12 +92,6 @@ static int tegra_hwpm_probe(struct platform_device *pdev)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!tegra_hwpm_read_support_soc_tools_prop(pdev)) {
|
||||
tegra_hwpm_err(NULL, "SOC HWPM not supported in this config");
|
||||
ret = -ENODEV;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
hwpm_linux = kzalloc(sizeof(struct tegra_hwpm_os_linux), GFP_KERNEL);
|
||||
if (!hwpm_linux) {
|
||||
tegra_hwpm_err(NULL,
|
||||
|
||||
Reference in New Issue
Block a user