fixup ARM: tegra: powergate: Add hot reset sequence for powergate
Dan Willemsen [Tue, 26 Feb 2013 01:20:58 +0000 (17:20 -0800)]
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>

arch/arm/mach-tegra/powergate.c

index de8af12..6f3c33e 100644 (file)
@@ -621,12 +621,10 @@ int __init tegra_powergate_debugfs_init(void)
 {
        struct dentry *d;
 
-       if (powergate_name) {
-               d = debugfs_create_file("powergate", S_IRUGO, NULL, NULL,
-                       &powergate_fops);
-               if (!d)
-                       return -ENOMEM;
-       }
+       d = debugfs_create_file("powergate", S_IRUGO, NULL, NULL,
+               &powergate_fops);
+       if (!d)
+               return -ENOMEM;
 
        return 0;
 }