diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 15:57:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 15:57:37 -0400 |
commit | 6fd03301d76bc439382710e449f58efbb233df1b (patch) | |
tree | 3c8a3217aed67319683ffc1debccdb5b3245b16c /drivers/s390/char/raw3270.c | |
parent | cd5232bd6be2d215a800f3d88c287ca791debfbe (diff) | |
parent | e4792aa30f9d33584d7192685ed149cc5fee737f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (64 commits)
debugfs: use specified mode to possibly mark files read/write only
debugfs: Fix terminology inconsistency of dir name to mount debugfs filesystem.
xen: remove driver_data direct access of struct device from more drivers
usb: gadget: at91_udc: remove driver_data direct access of struct device
uml: remove driver_data direct access of struct device
block/ps3: remove driver_data direct access of struct device
s390: remove driver_data direct access of struct device
parport: remove driver_data direct access of struct device
parisc: remove driver_data direct access of struct device
of_serial: remove driver_data direct access of struct device
mips: remove driver_data direct access of struct device
ipmi: remove driver_data direct access of struct device
infiniband: ehca: remove driver_data direct access of struct device
ibmvscsi: gadget: at91_udc: remove driver_data direct access of struct device
hvcs: remove driver_data direct access of struct device
xen block: remove driver_data direct access of struct device
thermal: remove driver_data direct access of struct device
scsi: remove driver_data direct access of struct device
pcmcia: remove driver_data direct access of struct device
PCIE: remove driver_data direct access of struct device
...
Manually fix up trivial conflicts due to different direct driver_data
direct access fixups in drivers/block/{ps3disk.c,ps3vram.c}
Diffstat (limited to 'drivers/s390/char/raw3270.c')
-rw-r--r-- | drivers/s390/char/raw3270.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 81c151b5f0ac..acab7b2dfe8a 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -357,7 +357,7 @@ raw3270_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) | |||
357 | struct raw3270_request *rq; | 357 | struct raw3270_request *rq; |
358 | int rc; | 358 | int rc; |
359 | 359 | ||
360 | rp = (struct raw3270 *) cdev->dev.driver_data; | 360 | rp = dev_get_drvdata(&cdev->dev); |
361 | if (!rp) | 361 | if (!rp) |
362 | return; | 362 | return; |
363 | rq = (struct raw3270_request *) intparm; | 363 | rq = (struct raw3270_request *) intparm; |
@@ -831,7 +831,7 @@ raw3270_setup_device(struct ccw_device *cdev, struct raw3270 *rp, char *ascebc) | |||
831 | if (rp->minor == -1) | 831 | if (rp->minor == -1) |
832 | return -EUSERS; | 832 | return -EUSERS; |
833 | rp->cdev = cdev; | 833 | rp->cdev = cdev; |
834 | cdev->dev.driver_data = rp; | 834 | dev_set_drvdata(&cdev->dev, rp); |
835 | cdev->handler = raw3270_irq; | 835 | cdev->handler = raw3270_irq; |
836 | return 0; | 836 | return 0; |
837 | } | 837 | } |
@@ -1112,7 +1112,7 @@ raw3270_delete_device(struct raw3270 *rp) | |||
1112 | /* Disconnect from ccw_device. */ | 1112 | /* Disconnect from ccw_device. */ |
1113 | cdev = rp->cdev; | 1113 | cdev = rp->cdev; |
1114 | rp->cdev = NULL; | 1114 | rp->cdev = NULL; |
1115 | cdev->dev.driver_data = NULL; | 1115 | dev_set_drvdata(&cdev->dev, NULL); |
1116 | cdev->handler = NULL; | 1116 | cdev->handler = NULL; |
1117 | 1117 | ||
1118 | /* Put ccw_device structure. */ | 1118 | /* Put ccw_device structure. */ |
@@ -1136,7 +1136,7 @@ static ssize_t | |||
1136 | raw3270_model_show(struct device *dev, struct device_attribute *attr, char *buf) | 1136 | raw3270_model_show(struct device *dev, struct device_attribute *attr, char *buf) |
1137 | { | 1137 | { |
1138 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1138 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1139 | ((struct raw3270 *) dev->driver_data)->model); | 1139 | ((struct raw3270 *) dev_get_drvdata(dev))->model); |
1140 | } | 1140 | } |
1141 | static DEVICE_ATTR(model, 0444, raw3270_model_show, NULL); | 1141 | static DEVICE_ATTR(model, 0444, raw3270_model_show, NULL); |
1142 | 1142 | ||
@@ -1144,7 +1144,7 @@ static ssize_t | |||
1144 | raw3270_rows_show(struct device *dev, struct device_attribute *attr, char *buf) | 1144 | raw3270_rows_show(struct device *dev, struct device_attribute *attr, char *buf) |
1145 | { | 1145 | { |
1146 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1146 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1147 | ((struct raw3270 *) dev->driver_data)->rows); | 1147 | ((struct raw3270 *) dev_get_drvdata(dev))->rows); |
1148 | } | 1148 | } |
1149 | static DEVICE_ATTR(rows, 0444, raw3270_rows_show, NULL); | 1149 | static DEVICE_ATTR(rows, 0444, raw3270_rows_show, NULL); |
1150 | 1150 | ||
@@ -1152,7 +1152,7 @@ static ssize_t | |||
1152 | raw3270_columns_show(struct device *dev, struct device_attribute *attr, char *buf) | 1152 | raw3270_columns_show(struct device *dev, struct device_attribute *attr, char *buf) |
1153 | { | 1153 | { |
1154 | return snprintf(buf, PAGE_SIZE, "%i\n", | 1154 | return snprintf(buf, PAGE_SIZE, "%i\n", |
1155 | ((struct raw3270 *) dev->driver_data)->cols); | 1155 | ((struct raw3270 *) dev_get_drvdata(dev))->cols); |
1156 | } | 1156 | } |
1157 | static DEVICE_ATTR(columns, 0444, raw3270_columns_show, NULL); | 1157 | static DEVICE_ATTR(columns, 0444, raw3270_columns_show, NULL); |
1158 | 1158 | ||
@@ -1289,7 +1289,7 @@ raw3270_remove (struct ccw_device *cdev) | |||
1289 | struct raw3270_view *v; | 1289 | struct raw3270_view *v; |
1290 | struct raw3270_notifier *np; | 1290 | struct raw3270_notifier *np; |
1291 | 1291 | ||
1292 | rp = cdev->dev.driver_data; | 1292 | rp = dev_get_drvdata(&cdev->dev); |
1293 | /* | 1293 | /* |
1294 | * _remove is the opposite of _probe; it's probe that | 1294 | * _remove is the opposite of _probe; it's probe that |
1295 | * should set up rp. raw3270_remove gets entered for | 1295 | * should set up rp. raw3270_remove gets entered for |
@@ -1337,7 +1337,7 @@ raw3270_set_offline (struct ccw_device *cdev) | |||
1337 | { | 1337 | { |
1338 | struct raw3270 *rp; | 1338 | struct raw3270 *rp; |
1339 | 1339 | ||
1340 | rp = cdev->dev.driver_data; | 1340 | rp = dev_get_drvdata(&cdev->dev); |
1341 | if (test_bit(RAW3270_FLAGS_CONSOLE, &rp->flags)) | 1341 | if (test_bit(RAW3270_FLAGS_CONSOLE, &rp->flags)) |
1342 | return -EBUSY; | 1342 | return -EBUSY; |
1343 | raw3270_remove(cdev); | 1343 | raw3270_remove(cdev); |