mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
ARM: tegra: Fix powergate_debugfs_init return value
Change-Id: Iff865e0f74e1667aa6e998a63d33d3b4cd09694c Signed-off-by: Benoit Goby <benoit@android.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user