diff mbox

[4/7] ARM: oprofile: Move non-ARM code into separate init/exit

Message ID 20101006145311.GA3754@linux-sh.org (mailing list archive)
State RFC
Headers show

Commit Message

Paul Mundt Oct. 6, 2010, 2:53 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/oprofile/oprof.c b/drivers/oprofile/oprof.c
index b336cd9..76d97a5 100644
--- a/drivers/oprofile/oprof.c
+++ b/drivers/oprofile/oprof.c
@@ -252,6 +252,8 @@  static int __init oprofile_init(void)
 {
 	int err;
 
+	memset(&oprofile_ops, 0, sizeof(struct oprofile_operations));
+
 	err = oprofile_arch_init(&oprofile_ops);
 	if (err < 0 || timer) {
 		printk(KERN_INFO "oprofile: using timer interrupt.\n");