aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/raw3270.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2009-06-22 06:08:19 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-06-22 06:08:23 -0400
commit4f0076f77fb64889d4e5e425b63333e5764b446d (patch)
treeaa18259974eeb424277490254da48bd75df5ebb8 /drivers/s390/char/raw3270.c
parent4a9c75255e1fef4247cf960d3c3eb528c8cd8409 (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/raw3270.c')
-rw-r--r--drivers/s390/char/raw3270.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c
index 9047b62294d0..d6a022f55e92 100644
--- a/drivers/s390/char/raw3270.c
+++ b/drivers/s390/char/raw3270.c
@@ -1322,7 +1322,7 @@ static int raw3270_pm_stop(struct ccw_device *cdev)
1322 struct raw3270_view *view; 1322 struct raw3270_view *view;
1323 unsigned long flags; 1323 unsigned long flags;
1324 1324
1325 rp = cdev->dev.driver_data; 1325 rp = dev_get_drvdata(&cdev->dev);
1326 if (!rp) 1326 if (!rp)
1327 return 0; 1327 return 0;
1328 spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags); 1328 spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags);
@@ -1348,7 +1348,7 @@ static int raw3270_pm_start(struct ccw_device *cdev)
1348 struct raw3270 *rp; 1348 struct raw3270 *rp;
1349 unsigned long flags; 1349 unsigned long flags;
1350 1350
1351 rp = cdev->dev.driver_data; 1351 rp = dev_get_drvdata(&cdev->dev);
1352 if (!rp) 1352 if (!rp)
1353 return 0; 1353 return 0;
1354 spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags); 1354 spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags);