2011-11-18 05:42:32

by Varun Wadekar

[permalink] [raw]
Subject: [PATCH v7 1/2] arm: tegra: export tegra_chip_uid

From: Henning Heinold <[email protected]>

The crypto driver will need this api to use
it in the RNG calculations. In order to build
the crypto driver as a module, tegra_chip_uid
has to be exported.

Signed-off-by: Henning Heinold <[email protected]>
Signed-off-by: Varun Wadekar <[email protected]>
---
arch/arm/mach-tegra/fuse.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c
index 1fa26d9..ea49bd9 100644
--- a/arch/arm/mach-tegra/fuse.c
+++ b/arch/arm/mach-tegra/fuse.c
@@ -19,6 +19,7 @@

#include <linux/kernel.h>
#include <linux/io.h>
+#include <linux/module.h>

#include <mach/iomap.h>

@@ -58,6 +59,7 @@ unsigned long long tegra_chip_uid(void)
hi = fuse_readl(FUSE_UID_HIGH);
return (hi << 32ull) | lo;
}
+EXPORT_SYMBOL(tegra_chip_uid);

int tegra_sku_id(void)
{
--
1.7.1


2011-11-18 18:34:35

by Olof Johansson

[permalink] [raw]
Subject: Re: [PATCH v7 1/2] arm: tegra: export tegra_chip_uid

On Thu, Nov 17, 2011 at 9:42 PM, Varun Wadekar <[email protected]> wrote:
> From: Henning Heinold <[email protected]>
>
> The crypto driver will need this api to use
> it in the RNG calculations. In order to build
> the crypto driver as a module, tegra_chip_uid
> has to be exported.
>
> Signed-off-by: Henning Heinold <[email protected]>
> Signed-off-by: Varun Wadekar <[email protected]>

Acked-by: Olof Johansson <olof-nZhT3qVonbNeoWH[email protected]>