diff options
author | Benoit Goby <benoit@android.com> | 2011-01-10 14:58:00 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:36:53 -0800 |
commit | 79ce9284291ff5f57a09debf9eea92adb53a7543 (patch) | |
tree | 3ce26af9e91604e13c93039a0459f27b4b01f2f7 /arch/arm/mach-tegra/powergate.c | |
parent | efd95dc2548b8128ca03dd11a321cd454744a6f2 (diff) |
ARM: tegra: Fix powergate_debugfs_init return value
Change-Id: Iff865e0f74e1667aa6e998a63d33d3b4cd09694c
Signed-off-by: Benoit Goby <benoit@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/powergate.c')
-rw-r--r-- | arch/arm/mach-tegra/powergate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c index 9089f774af6d..8f6f96822e37 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); |