diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hvc_vio.c | 2 | ||||
-rw-r--r-- | drivers/char/hvcs.c | 5 | ||||
-rw-r--r-- | drivers/char/mem.c | 4 | ||||
-rw-r--r-- | drivers/char/viotape.c | 9 |
4 files changed, 12 insertions, 8 deletions
diff --git a/drivers/char/hvc_vio.c b/drivers/char/hvc_vio.c index 78d681dc35a8..f5212eb2b41d 100644 --- a/drivers/char/hvc_vio.c +++ b/drivers/char/hvc_vio.c | |||
@@ -95,11 +95,11 @@ static int __devexit hvc_vio_remove(struct vio_dev *vdev) | |||
95 | } | 95 | } |
96 | 96 | ||
97 | static struct vio_driver hvc_vio_driver = { | 97 | static struct vio_driver hvc_vio_driver = { |
98 | .name = hvc_driver_name, | ||
99 | .id_table = hvc_driver_table, | 98 | .id_table = hvc_driver_table, |
100 | .probe = hvc_vio_probe, | 99 | .probe = hvc_vio_probe, |
101 | .remove = hvc_vio_remove, | 100 | .remove = hvc_vio_remove, |
102 | .driver = { | 101 | .driver = { |
102 | .name = hvc_driver_name, | ||
103 | .owner = THIS_MODULE, | 103 | .owner = THIS_MODULE, |
104 | } | 104 | } |
105 | }; | 105 | }; |
diff --git a/drivers/char/hvcs.c b/drivers/char/hvcs.c index f47f009f9259..53dc77c760fc 100644 --- a/drivers/char/hvcs.c +++ b/drivers/char/hvcs.c | |||
@@ -720,10 +720,13 @@ static int __devexit hvcs_remove(struct vio_dev *dev) | |||
720 | }; | 720 | }; |
721 | 721 | ||
722 | static struct vio_driver hvcs_vio_driver = { | 722 | static struct vio_driver hvcs_vio_driver = { |
723 | .name = hvcs_driver_name, | ||
724 | .id_table = hvcs_driver_table, | 723 | .id_table = hvcs_driver_table, |
725 | .probe = hvcs_probe, | 724 | .probe = hvcs_probe, |
726 | .remove = hvcs_remove, | 725 | .remove = hvcs_remove, |
726 | .driver = { | ||
727 | .name = hvcs_driver_name, | ||
728 | .owner = THIS_MODULE, | ||
729 | } | ||
727 | }; | 730 | }; |
728 | 731 | ||
729 | /* Only called from hvcs_get_pi please */ | 732 | /* Only called from hvcs_get_pi please */ |
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 38be4b0dbd1c..91dd669273e0 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -231,9 +231,7 @@ static ssize_t write_mem(struct file * file, const char __user * buf, | |||
231 | static int mmap_mem(struct file * file, struct vm_area_struct * vma) | 231 | static int mmap_mem(struct file * file, struct vm_area_struct * vma) |
232 | { | 232 | { |
233 | #if defined(__HAVE_PHYS_MEM_ACCESS_PROT) | 233 | #if defined(__HAVE_PHYS_MEM_ACCESS_PROT) |
234 | unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; | 234 | vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, |
235 | |||
236 | vma->vm_page_prot = phys_mem_access_prot(file, offset, | ||
237 | vma->vm_end - vma->vm_start, | 235 | vma->vm_end - vma->vm_start, |
238 | vma->vm_page_prot); | 236 | vma->vm_page_prot); |
239 | #elif defined(pgprot_noncached) | 237 | #elif defined(pgprot_noncached) |
diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c index a5e104f428f8..51abd3defc1c 100644 --- a/drivers/char/viotape.c +++ b/drivers/char/viotape.c | |||
@@ -993,13 +993,16 @@ static struct vio_device_id viotape_device_table[] __devinitdata = { | |||
993 | { "viotape", "" }, | 993 | { "viotape", "" }, |
994 | { "", "" } | 994 | { "", "" } |
995 | }; | 995 | }; |
996 | |||
997 | MODULE_DEVICE_TABLE(vio, viotape_device_table); | 996 | MODULE_DEVICE_TABLE(vio, viotape_device_table); |
997 | |||
998 | static struct vio_driver viotape_driver = { | 998 | static struct vio_driver viotape_driver = { |
999 | .name = "viotape", | ||
1000 | .id_table = viotape_device_table, | 999 | .id_table = viotape_device_table, |
1001 | .probe = viotape_probe, | 1000 | .probe = viotape_probe, |
1002 | .remove = viotape_remove | 1001 | .remove = viotape_remove, |
1002 | .driver = { | ||
1003 | .name = "viotape", | ||
1004 | .owner = THIS_MODULE, | ||
1005 | } | ||
1003 | }; | 1006 | }; |
1004 | 1007 | ||
1005 | 1008 | ||