summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/powergate.c
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2012-09-06 17:55:28 +0300
committerStephen Warren <swarren@nvidia.com>2012-09-06 12:21:12 -0600
commitf858b6f21fc3381cd9f490dd63bf5f519002d3e2 (patch)
treeb0f75a01ef81fd26bf3fe836bc9d4f7bee5dbdda /arch/arm/mach-tegra/powergate.c
parent4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff)
ARM: tegra: fix return value for debugfs init
tegra_powergate_debugfs_init() always returns -ENOMEM. It shouldn't do that when registering the debugfs entry succeeded. Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/powergate.c')
-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 15d506501cc..27aee4ad1ae 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -237,14 +237,13 @@ static const struct file_operations powergate_fops = {
int __init tegra_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;
}
#endif