]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[ARM] constify function pointer tables
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 22 Jan 2008 19:41:07 +0000 (20:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Feb 2008 22:46:44 +0000 (22:46 +0000)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c
arch/arm/mach-davinci/clock.c

index d3941a7b0455cf632cc3ae066ade8fbad7124f2c..b7b0720bc1bbe8295ea3ca7b2849e4a5ad875bf2 100644 (file)
@@ -1001,7 +1001,7 @@ static void c_stop(struct seq_file *m, void *v)
 {
 }
 
-struct seq_operations cpuinfo_op = {
+const struct seq_operations cpuinfo_op = {
        .start  = c_start,
        .next   = c_next,
        .stop   = c_stop,
index 139ceaa35e2464146e18bace833883982f8f255f..4143828a9684615226e33de4fae0bbad831694fd 100644 (file)
@@ -290,7 +290,7 @@ static int davinci_ck_show(struct seq_file *m, void *v)
        return 0;
 }
 
-static struct seq_operations davinci_ck_op = {
+static const struct seq_operations davinci_ck_op = {
        .start  = davinci_ck_start,
        .next   = davinci_ck_next,
        .stop   = davinci_ck_stop,
@@ -302,7 +302,7 @@ static int davinci_ck_open(struct inode *inode, struct file *file)
        return seq_open(file, &davinci_ck_op);
 }
 
-static struct file_operations proc_davinci_ck_operations = {
+static const struct file_operations proc_davinci_ck_operations = {
        .open           = davinci_ck_open,
        .read           = seq_read,
        .llseek         = seq_lseek,