diff options
Diffstat (limited to 'drivers/s390/char/vmlogrdr.c')
-rw-r--r-- | drivers/s390/char/vmlogrdr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index d101328a2980..6f852fdb6d70 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
@@ -768,10 +768,10 @@ static int vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) | |||
768 | device_unregister(dev); | 768 | device_unregister(dev); |
769 | return ret; | 769 | return ret; |
770 | } | 770 | } |
771 | priv->class_device = device_create(vmlogrdr_class, dev, | 771 | priv->class_device = device_create_drvdata(vmlogrdr_class, dev, |
772 | MKDEV(vmlogrdr_major, | 772 | MKDEV(vmlogrdr_major, |
773 | priv->minor_num), | 773 | priv->minor_num), |
774 | "%s", dev->bus_id); | 774 | priv, "%s", dev->bus_id); |
775 | if (IS_ERR(priv->class_device)) { | 775 | if (IS_ERR(priv->class_device)) { |
776 | ret = PTR_ERR(priv->class_device); | 776 | ret = PTR_ERR(priv->class_device); |
777 | priv->class_device=NULL; | 777 | priv->class_device=NULL; |
@@ -779,7 +779,6 @@ static int vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) | |||
779 | device_unregister(dev); | 779 | device_unregister(dev); |
780 | return ret; | 780 | return ret; |
781 | } | 781 | } |
782 | dev->driver_data = priv; | ||
783 | priv->device = dev; | 782 | priv->device = dev; |
784 | return 0; | 783 | return 0; |
785 | } | 784 | } |