mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
platform: tegra: aon: Don't register firmware
The Tegra firmware-class driver is being deprecated to reduce the number of out-of-tree modules that are required. The firmware is registered with this driver for informational purposes. The firmware version is already printed on boot and so remove the call to register the firmware. Bug 4090910 Change-Id: Ifeafd7c65f1d02da9e1839746b5f91be07aa4578 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905820 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Akhilesh Khumbum <akhumbum@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
49244862b1
commit
e8240d6a9c
@@ -17,7 +17,6 @@
|
||||
#include <linux/completion.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/firmware.h>
|
||||
#include <linux/tegra-firmwares.h>
|
||||
|
||||
#include <aon.h>
|
||||
|
||||
@@ -418,23 +417,6 @@ static int aon_tag_show(struct seq_file *file, void *param)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static ssize_t aon_version_show(struct device *dev, char *buf, size_t size)
|
||||
{
|
||||
char *data;
|
||||
int ret = 0;
|
||||
|
||||
mutex_lock(&aon_mutex);
|
||||
ret = aon_get_fwtag(AON_QUERY_TAG, &data);
|
||||
if (ret < 0)
|
||||
ret = snprintf(buf, size, "error retrieving version: %d", ret);
|
||||
else
|
||||
ret = snprintf(buf, size, "%s", data ? data : "unavailable");
|
||||
mutex_unlock(&aon_mutex);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
static int aon_tag_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, aon_tag_show, inode->i_private);
|
||||
@@ -873,8 +855,6 @@ int tegra_aon_debugfs_create(struct tegra_aon *aon)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
devm_tegrafw_register(dev, "aon", TFW_NORMAL, aon_version_show, NULL);
|
||||
|
||||
exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user