diff options
Diffstat (limited to 'drivers/block/umem.c')
-rw-r--r-- | drivers/block/umem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c index 858c34dd032d..ad1ba393801a 100644 --- a/drivers/block/umem.c +++ b/drivers/block/umem.c | |||
@@ -140,7 +140,6 @@ struct cardinfo { | |||
140 | }; | 140 | }; |
141 | 141 | ||
142 | static struct cardinfo cards[MM_MAXCARDS]; | 142 | static struct cardinfo cards[MM_MAXCARDS]; |
143 | static struct block_device_operations mm_fops; | ||
144 | static struct timer_list battery_timer; | 143 | static struct timer_list battery_timer; |
145 | 144 | ||
146 | static int num_cards; | 145 | static int num_cards; |
@@ -789,7 +788,7 @@ static int mm_check_change(struct gendisk *disk) | |||
789 | return 0; | 788 | return 0; |
790 | } | 789 | } |
791 | 790 | ||
792 | static struct block_device_operations mm_fops = { | 791 | static const struct block_device_operations mm_fops = { |
793 | .owner = THIS_MODULE, | 792 | .owner = THIS_MODULE, |
794 | .getgeo = mm_getgeo, | 793 | .getgeo = mm_getgeo, |
795 | .revalidate_disk = mm_revalidate, | 794 | .revalidate_disk = mm_revalidate, |