ARM: tegra: Export tegra_powergate_is_powered()
Antti P Miettinen [Thu, 19 Apr 2012 21:14:01 +0000 (00:14 +0300)]
Export tegra_powergate_is_powered() for use by modules.

Change-Id: I8cfbb8aeb95dca00cbf6ef0c8c2bd189afeb62b6
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/97724
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rc58f8bea2d4211cb45806a8380823efc9267ac9b

arch/arm/mach-tegra/powergate.c

index a5500a5..3c0ff51 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/clk.h>
 #include <linux/debugfs.h>
 #include <linux/delay.h>
@@ -516,6 +517,7 @@ int tegra_powergate_is_powered(int id)
        status = pmc_read(PWRGATE_STATUS) & (1 << id);
        return !!status;
 }
+EXPORT_SYMBOL(tegra_powergate_is_powered);
 
 int tegra_powergate_remove_clamping(int id)
 {