diff options
Diffstat (limited to 'drivers/s390/char/monreader.c')
-rw-r--r-- | drivers/s390/char/monreader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c index 75a8831eebbc..7892550d7932 100644 --- a/drivers/s390/char/monreader.c +++ b/drivers/s390/char/monreader.c | |||
@@ -320,7 +320,7 @@ static int mon_open(struct inode *inode, struct file *filp) | |||
320 | goto out_path; | 320 | goto out_path; |
321 | } | 321 | } |
322 | filp->private_data = monpriv; | 322 | filp->private_data = monpriv; |
323 | monreader_device->driver_data = monpriv; | 323 | dev_set_drvdata(&monreader_device, monpriv); |
324 | unlock_kernel(); | 324 | unlock_kernel(); |
325 | return nonseekable_open(inode, filp); | 325 | return nonseekable_open(inode, filp); |
326 | 326 | ||
@@ -463,7 +463,7 @@ static struct miscdevice mon_dev = { | |||
463 | *****************************************************************************/ | 463 | *****************************************************************************/ |
464 | static int monreader_freeze(struct device *dev) | 464 | static int monreader_freeze(struct device *dev) |
465 | { | 465 | { |
466 | struct mon_private *monpriv = dev->driver_data; | 466 | struct mon_private *monpriv = dev_get_drvdata(&dev); |
467 | int rc; | 467 | int rc; |
468 | 468 | ||
469 | if (!monpriv) | 469 | if (!monpriv) |
@@ -487,7 +487,7 @@ static int monreader_freeze(struct device *dev) | |||
487 | 487 | ||
488 | static int monreader_thaw(struct device *dev) | 488 | static int monreader_thaw(struct device *dev) |
489 | { | 489 | { |
490 | struct mon_private *monpriv = dev->driver_data; | 490 | struct mon_private *monpriv = dev_get_drvdata(dev); |
491 | int rc; | 491 | int rc; |
492 | 492 | ||
493 | if (!monpriv) | 493 | if (!monpriv) |