summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBenoit Goby <benoit@android.com>2011-01-10 14:58:00 -0800
committerBenoit Goby <benoit@android.com>2011-01-10 15:16:51 -0800
commitf7120584faebeb1e3d907f4e18f61c3285db1f78 (patch)
tree10485425db119bf6b95472853fc1e50ebb849d92 /arch
parent0479121df7422847b91a36e93112dc6cc5388775 (diff)
ARM: tegra: Fix powergate_debugfs_init return value
Change-Id: Iff865e0f74e1667aa6e998a63d33d3b4cd09694c Signed-off-by: Benoit Goby <benoit@android.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/powergate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index 3d75e1e2d4a1..aad47f45831e 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -220,14 +220,13 @@ static const struct file_operations powergate_fops = {
static int __init powergate_debugfs_init(void)
{
struct dentry *d;
- int err = -ENOMEM;
d = debugfs_create_file("powergate", S_IRUGO, NULL, NULL,
&powergate_fops);
if (!d)
return -ENOMEM;
- return err;
+ return 0;
}
late_initcall(powergate_debugfs_init);