diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:19 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-22 06:08:23 -0400 |
commit | 4f0076f77fb64889d4e5e425b63333e5764b446d (patch) | |
tree | aa18259974eeb424277490254da48bd75df5ebb8 /drivers/s390/char/vmlogrdr.c | |
parent | 4a9c75255e1fef4247cf960d3c3eb528c8cd8409 (diff) |
[S390] driver_data access
Replace the remaining direct accesses to the driver_data pointer
with calls to the dev_get_drvdata() and dev_set_drvdata() functions.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/vmlogrdr.c')
-rw-r--r-- | drivers/s390/char/vmlogrdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index 411cfa3c7719..c20a4fe6da51 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c | |||
@@ -663,7 +663,7 @@ static struct attribute *vmlogrdr_attrs[] = { | |||
663 | static int vmlogrdr_pm_prepare(struct device *dev) | 663 | static int vmlogrdr_pm_prepare(struct device *dev) |
664 | { | 664 | { |
665 | int rc; | 665 | int rc; |
666 | struct vmlogrdr_priv_t *priv = dev->driver_data; | 666 | struct vmlogrdr_priv_t *priv = dev_get_drvdata(dev); |
667 | 667 | ||
668 | rc = 0; | 668 | rc = 0; |
669 | if (priv) { | 669 | if (priv) { |
@@ -753,7 +753,7 @@ static int vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) | |||
753 | dev->bus = &iucv_bus; | 753 | dev->bus = &iucv_bus; |
754 | dev->parent = iucv_root; | 754 | dev->parent = iucv_root; |
755 | dev->driver = &vmlogrdr_driver; | 755 | dev->driver = &vmlogrdr_driver; |
756 | dev->driver_data = priv; | 756 | dev_set_drvdata(dev, priv); |
757 | /* | 757 | /* |
758 | * The release function could be called after the | 758 | * The release function could be called after the |
759 | * module has been unloaded. It's _only_ task is to | 759 | * module has been unloaded. It's _only_ task is to |