ARM: tegra: Fix powergate_debugfs_init return value

Change-Id: Iff865e0f74e1667aa6e998a63d33d3b4cd09694c
Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
Benoit Goby
2011-01-10 14:58:00 -08:00
parent 0479121df7
commit f7120584fa

View File

@@ -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);