Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9824b8f1 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
  [S390] cio: fix orb initialization in cio_start_key
  [S390] cio: Fix driver_data handling for ccwgroup devices.
parents ab048fb1 9adb8c1d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ ccwgroup_release (struct device *dev)

	for (i = 0; i < gdev->count; i++) {
		if (gdev->cdev[i]) {
			if (dev_get_drvdata(&gdev->cdev[i]->dev) == gdev)
				dev_set_drvdata(&gdev->cdev[i]->dev, NULL);
			put_device(&gdev->cdev[i]->dev);
		}
@@ -296,6 +297,7 @@ int ccwgroup_create_from_string(struct device *root, unsigned int creator_id,
			if (dev_get_drvdata(&gdev->cdev[i]->dev) == gdev)
				dev_set_drvdata(&gdev->cdev[i]->dev, NULL);
			put_device(&gdev->cdev[i]->dev);
			gdev->cdev[i] = NULL;
		}
	mutex_unlock(&gdev->reg_mutex);
	put_device(&gdev->dev);
+1 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */
	CIO_TRACE_EVENT(4, sch->dev.bus_id);

	orb = &to_io_private(sch)->orb;
	memset(orb, 0, sizeof(union orb));
	/* sch is always under 2G. */
	orb->cmd.intparm = (u32)(addr_t)sch;
	orb->cmd.fmt = 1;