diff options
author | Shardar Shariff Md <smohammed@nvidia.com> | 2013-10-17 12:18:18 +0530 |
---|---|---|
committer | Shardar Mohammed <smohammed@nvidia.com> | 2013-10-21 06:12:39 -0700 |
commit | 7e0c0beecbdb96cf4087ad3a7f10e372a0d8e159 (patch) | |
tree | a060427716cb0a90dac5d414ed494a3bea0f959d /arch/arm/mach-tegra/common.c | |
parent | b0d979c91f815324afa2e978f805018310657b12 (diff) |
arm: tegra: fuse: replace globals with functions
Replace globals tegra_sku_id, tegra_chip_id &
tegra_bct_strapping with below functions
u32 tegra_get_sku_id(void);
u32 tegra_get_chip_id(void);
u32 tegra_get_bct_strapping(void);
Bug 1380004
Change-Id: I43eb2523e4af5d06bc1aa1f03c02c5168577878c
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/300401
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/common.c')
-rw-r--r-- | arch/arm/mach-tegra/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index b6825e6697dd..54bde6157577 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -2232,8 +2232,10 @@ static const char * __init tegra_get_family(void) static const char * __init tegra_get_soc_id(void) { int package_id = tegra_package_id(); + return kasprintf(GFP_KERNEL, "REV=%s:SKU=0x%x:PID=0x%x", - tegra_revision_name[tegra_revision], tegra_sku_id, package_id); + tegra_revision_name[tegra_revision], + tegra_get_sku_id(), package_id); } static void __init tegra_soc_info_populate(struct soc_device_attribute |