aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/cio/device.c')
-rw-r--r--drivers/s390/cio/device.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 7646a9930ecb..94bdd4d8a4c9 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -591,7 +591,7 @@ ccw_device_add_changed(void *data)
591 591
592 struct ccw_device *cdev; 592 struct ccw_device *cdev;
593 593
594 cdev = (struct ccw_device *)data; 594 cdev = data;
595 if (device_add(&cdev->dev)) { 595 if (device_add(&cdev->dev)) {
596 put_device(&cdev->dev); 596 put_device(&cdev->dev);
597 return; 597 return;
@@ -612,7 +612,7 @@ ccw_device_do_unreg_rereg(void *data)
612 struct subchannel *sch; 612 struct subchannel *sch;
613 int need_rename; 613 int need_rename;
614 614
615 cdev = (struct ccw_device *)data; 615 cdev = data;
616 sch = to_subchannel(cdev->dev.parent); 616 sch = to_subchannel(cdev->dev.parent);
617 if (cdev->private->dev_id.devno != sch->schib.pmcw.dev) { 617 if (cdev->private->dev_id.devno != sch->schib.pmcw.dev) {
618 /* 618 /*
@@ -660,7 +660,7 @@ ccw_device_do_unreg_rereg(void *data)
660 snprintf (cdev->dev.bus_id, BUS_ID_SIZE, "0.%x.%04x", 660 snprintf (cdev->dev.bus_id, BUS_ID_SIZE, "0.%x.%04x",
661 sch->schid.ssid, sch->schib.pmcw.dev); 661 sch->schid.ssid, sch->schib.pmcw.dev);
662 PREPARE_WORK(&cdev->private->kick_work, 662 PREPARE_WORK(&cdev->private->kick_work,
663 ccw_device_add_changed, (void *)cdev); 663 ccw_device_add_changed, cdev);
664 queue_work(ccw_device_work, &cdev->private->kick_work); 664 queue_work(ccw_device_work, &cdev->private->kick_work);
665} 665}
666 666
@@ -685,7 +685,7 @@ io_subchannel_register(void *data)
685 int ret; 685 int ret;
686 unsigned long flags; 686 unsigned long flags;
687 687
688 cdev = (struct ccw_device *) data; 688 cdev = data;
689 sch = to_subchannel(cdev->dev.parent); 689 sch = to_subchannel(cdev->dev.parent);
690 690
691 if (klist_node_attached(&cdev->dev.knode_parent)) { 691 if (klist_node_attached(&cdev->dev.knode_parent)) {
@@ -757,7 +757,7 @@ io_subchannel_recog_done(struct ccw_device *cdev)
757 break; 757 break;
758 sch = to_subchannel(cdev->dev.parent); 758 sch = to_subchannel(cdev->dev.parent);
759 PREPARE_WORK(&cdev->private->kick_work, 759 PREPARE_WORK(&cdev->private->kick_work,
760 ccw_device_call_sch_unregister, (void *) cdev); 760 ccw_device_call_sch_unregister, cdev);
761 queue_work(slow_path_wq, &cdev->private->kick_work); 761 queue_work(slow_path_wq, &cdev->private->kick_work);
762 if (atomic_dec_and_test(&ccw_device_init_count)) 762 if (atomic_dec_and_test(&ccw_device_init_count))
763 wake_up(&ccw_device_init_wq); 763 wake_up(&ccw_device_init_wq);
@@ -772,7 +772,7 @@ io_subchannel_recog_done(struct ccw_device *cdev)
772 if (!get_device(&cdev->dev)) 772 if (!get_device(&cdev->dev))
773 break; 773 break;
774 PREPARE_WORK(&cdev->private->kick_work, 774 PREPARE_WORK(&cdev->private->kick_work,
775 io_subchannel_register, (void *) cdev); 775 io_subchannel_register, cdev);
776 queue_work(slow_path_wq, &cdev->private->kick_work); 776 queue_work(slow_path_wq, &cdev->private->kick_work);
777 break; 777 break;
778 } 778 }
@@ -910,7 +910,7 @@ io_subchannel_remove (struct subchannel *sch)
910 */ 910 */
911 if (get_device(&cdev->dev)) { 911 if (get_device(&cdev->dev)) {
912 PREPARE_WORK(&cdev->private->kick_work, 912 PREPARE_WORK(&cdev->private->kick_work,
913 ccw_device_unregister, (void *) cdev); 913 ccw_device_unregister, cdev);
914 queue_work(ccw_device_work, &cdev->private->kick_work); 914 queue_work(ccw_device_work, &cdev->private->kick_work);
915 } 915 }
916 return 0; 916 return 0;
@@ -1053,7 +1053,7 @@ __ccwdev_check_busid(struct device *dev, void *id)
1053{ 1053{
1054 char *bus_id; 1054 char *bus_id;
1055 1055
1056 bus_id = (char *)id; 1056 bus_id = id;
1057 1057
1058 return (strncmp(bus_id, dev->bus_id, BUS_ID_SIZE) == 0); 1058 return (strncmp(bus_id, dev->bus_id, BUS_ID_SIZE) == 0);
1059} 1059}