From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH 1/1] sh: clkfwk: Use debugfs_remove_recursive() for rewinding
Date: Mon, 10 May 2010 11:50:55 +0000 [thread overview]
Message-ID: <1273492255-5158-1-git-send-email-Hiroshi.DOYU@nokia.com> (raw)
From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Rewinding each debugfs entries to unregister if an error happens.
Based on the commit ca4caa4e1d45f9542fa54263974d0ef637157b4a
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
---
arch/sh/kernel/cpu/clock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c
index e9fa1bf..551b214 100644
--- a/arch/sh/kernel/cpu/clock.c
+++ b/arch/sh/kernel/cpu/clock.c
@@ -673,7 +673,7 @@ static int __init clk_debugfs_init(void)
}
return 0;
err_out:
- debugfs_remove(clk_debugfs_root); /* REVISIT: Cleanup correctly */
+ debugfs_remove_recursive(clk_debugfs_root);
return err;
}
late_initcall(clk_debugfs_init);
--
1.7.1.rc1
next reply other threads:[~2010-05-10 11:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 11:50 Hiroshi DOYU [this message]
2010-05-11 2:51 ` [PATCH 1/1] sh: clkfwk: Use debugfs_remove_recursive() for rewinding Paul Mundt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1273492255-5158-1-git-send-email-Hiroshi.DOYU@nokia.com \
--to=hiroshi.doyu@nokia.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).