aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2009-09-21 20:01:13 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-22 10:17:25 -0400
commit83d5cde47dedf01b6a4a4331882cbc0a7eea3c2e (patch)
treef8ba5e263717d35cd444fcc65898d2ed352af1ae /drivers/md/md.c
parent7b021967c5e1463936042c8da72b550d3cabe9ac (diff)
const: make block_device_operations const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 9dd872000ce..6aa497e4baf 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -138,7 +138,7 @@ static ctl_table raid_root_table[] = {
138 { .ctl_name = 0 } 138 { .ctl_name = 0 }
139}; 139};
140 140
141static struct block_device_operations md_fops; 141static const struct block_device_operations md_fops;
142 142
143static int start_readonly; 143static int start_readonly;
144 144
@@ -5556,7 +5556,7 @@ static int md_revalidate(struct gendisk *disk)
5556 mddev->changed = 0; 5556 mddev->changed = 0;
5557 return 0; 5557 return 0;
5558} 5558}
5559static struct block_device_operations md_fops = 5559static const struct block_device_operations md_fops =
5560{ 5560{
5561 .owner = THIS_MODULE, 5561 .owner = THIS_MODULE,
5562 .open = md_open, 5562 .open = md_open,