diff options
Diffstat (limited to 'drivers/s390/char/vmlogrdr.c')
-rw-r--r-- | drivers/s390/char/vmlogrdr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index edf50d2bd10b..f7717327d15e 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
@@ -548,7 +548,7 @@ vmlogrdr_read (struct file *filp, char *data, size_t count, loff_t * ppos) | |||
548 | } | 548 | } |
549 | 549 | ||
550 | static ssize_t | 550 | static ssize_t |
551 | vmlogrdr_autopurge_store(struct device * dev, const char * buf, size_t count) { | 551 | vmlogrdr_autopurge_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
552 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 552 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
553 | ssize_t ret = count; | 553 | ssize_t ret = count; |
554 | 554 | ||
@@ -567,7 +567,7 @@ vmlogrdr_autopurge_store(struct device * dev, const char * buf, size_t count) { | |||
567 | 567 | ||
568 | 568 | ||
569 | static ssize_t | 569 | static ssize_t |
570 | vmlogrdr_autopurge_show(struct device *dev, char *buf) { | 570 | vmlogrdr_autopurge_show(struct device *dev, struct device_attribute *attr, char *buf) { |
571 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 571 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
572 | return sprintf(buf, "%u\n", priv->autopurge); | 572 | return sprintf(buf, "%u\n", priv->autopurge); |
573 | } | 573 | } |
@@ -578,7 +578,7 @@ static DEVICE_ATTR(autopurge, 0644, vmlogrdr_autopurge_show, | |||
578 | 578 | ||
579 | 579 | ||
580 | static ssize_t | 580 | static ssize_t |
581 | vmlogrdr_purge_store(struct device * dev, const char * buf, size_t count) { | 581 | vmlogrdr_purge_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
582 | 582 | ||
583 | char cp_command[80]; | 583 | char cp_command[80]; |
584 | char cp_response[80]; | 584 | char cp_response[80]; |
@@ -619,7 +619,7 @@ static DEVICE_ATTR(purge, 0200, NULL, vmlogrdr_purge_store); | |||
619 | 619 | ||
620 | 620 | ||
621 | static ssize_t | 621 | static ssize_t |
622 | vmlogrdr_autorecording_store(struct device *dev, const char *buf, | 622 | vmlogrdr_autorecording_store(struct device *dev, struct device_attribute *attr, const char *buf, |
623 | size_t count) { | 623 | size_t count) { |
624 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 624 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
625 | ssize_t ret = count; | 625 | ssize_t ret = count; |
@@ -639,7 +639,7 @@ vmlogrdr_autorecording_store(struct device *dev, const char *buf, | |||
639 | 639 | ||
640 | 640 | ||
641 | static ssize_t | 641 | static ssize_t |
642 | vmlogrdr_autorecording_show(struct device *dev, char *buf) { | 642 | vmlogrdr_autorecording_show(struct device *dev, struct device_attribute *attr, char *buf) { |
643 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 643 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
644 | return sprintf(buf, "%u\n", priv->autorecording); | 644 | return sprintf(buf, "%u\n", priv->autorecording); |
645 | } | 645 | } |
@@ -650,7 +650,7 @@ static DEVICE_ATTR(autorecording, 0644, vmlogrdr_autorecording_show, | |||
650 | 650 | ||
651 | 651 | ||
652 | static ssize_t | 652 | static ssize_t |
653 | vmlogrdr_recording_store(struct device * dev, const char * buf, size_t count) { | 653 | vmlogrdr_recording_store(struct device * dev, struct device_attribute *attr, const char * buf, size_t count) { |
654 | 654 | ||
655 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 655 | struct vmlogrdr_priv_t *priv = dev->driver_data; |
656 | ssize_t ret; | 656 | ssize_t ret; |
@@ -703,7 +703,7 @@ static struct attribute_group vmlogrdr_attr_group = { | |||
703 | .attrs = vmlogrdr_attrs, | 703 | .attrs = vmlogrdr_attrs, |
704 | }; | 704 | }; |
705 | 705 | ||
706 | static struct class_simple *vmlogrdr_class; | 706 | static struct class *vmlogrdr_class; |
707 | static struct device_driver vmlogrdr_driver = { | 707 | static struct device_driver vmlogrdr_driver = { |
708 | .name = "vmlogrdr", | 708 | .name = "vmlogrdr", |
709 | .bus = &iucv_bus, | 709 | .bus = &iucv_bus, |
@@ -727,7 +727,7 @@ vmlogrdr_register_driver(void) { | |||
727 | goto unregdriver; | 727 | goto unregdriver; |
728 | } | 728 | } |
729 | 729 | ||
730 | vmlogrdr_class = class_simple_create(THIS_MODULE, "vmlogrdr"); | 730 | vmlogrdr_class = class_create(THIS_MODULE, "vmlogrdr"); |
731 | if (IS_ERR(vmlogrdr_class)) { | 731 | if (IS_ERR(vmlogrdr_class)) { |
732 | printk(KERN_ERR "vmlogrdr: failed to create class.\n"); | 732 | printk(KERN_ERR "vmlogrdr: failed to create class.\n"); |
733 | ret=PTR_ERR(vmlogrdr_class); | 733 | ret=PTR_ERR(vmlogrdr_class); |
@@ -746,7 +746,7 @@ unregdriver: | |||
746 | 746 | ||
747 | static void | 747 | static void |
748 | vmlogrdr_unregister_driver(void) { | 748 | vmlogrdr_unregister_driver(void) { |
749 | class_simple_destroy(vmlogrdr_class); | 749 | class_destroy(vmlogrdr_class); |
750 | vmlogrdr_class = NULL; | 750 | vmlogrdr_class = NULL; |
751 | driver_remove_file(&vmlogrdr_driver, &driver_attr_recording_status); | 751 | driver_remove_file(&vmlogrdr_driver, &driver_attr_recording_status); |
752 | driver_unregister(&vmlogrdr_driver); | 752 | driver_unregister(&vmlogrdr_driver); |
@@ -786,7 +786,7 @@ vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) { | |||
786 | device_unregister(dev); | 786 | device_unregister(dev); |
787 | return ret; | 787 | return ret; |
788 | } | 788 | } |
789 | priv->class_device = class_simple_device_add( | 789 | priv->class_device = class_device_create( |
790 | vmlogrdr_class, | 790 | vmlogrdr_class, |
791 | MKDEV(vmlogrdr_major, priv->minor_num), | 791 | MKDEV(vmlogrdr_major, priv->minor_num), |
792 | dev, | 792 | dev, |
@@ -806,7 +806,7 @@ vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) { | |||
806 | 806 | ||
807 | static int | 807 | static int |
808 | vmlogrdr_unregister_device(struct vmlogrdr_priv_t *priv ) { | 808 | vmlogrdr_unregister_device(struct vmlogrdr_priv_t *priv ) { |
809 | class_simple_device_remove(MKDEV(vmlogrdr_major, priv->minor_num)); | 809 | class_device_destroy(vmlogrdr_class, MKDEV(vmlogrdr_major, priv->minor_num)); |
810 | if (priv->device != NULL) { | 810 | if (priv->device != NULL) { |
811 | sysfs_remove_group(&priv->device->kobj, &vmlogrdr_attr_group); | 811 | sysfs_remove_group(&priv->device->kobj, &vmlogrdr_attr_group); |
812 | device_unregister(priv->device); | 812 | device_unregister(priv->device); |