Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121374
b: refs/heads/master
c: faf16aa
h: refs/heads/master
v: v3
  • Loading branch information
Cornelia Huck authored and Martin Schwidefsky committed Dec 25, 2008
1 parent 23c6d26 commit d1eea93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bf373b3e3691d5cb57089a3897316a1b7d5ffa7
refs/heads/master: faf16aa9b368d48a0efbd0920718d68ec7a72542
6 changes: 3 additions & 3 deletions trunk/drivers/s390/block/dasd_devmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ dasd_create_device(struct ccw_device *cdev)
}

spin_lock_irqsave(get_ccwdev_lock(cdev), flags);
cdev->dev.driver_data = device;
dev_set_drvdata(&cdev->dev, device);
spin_unlock_irqrestore(get_ccwdev_lock(cdev), flags);

return device;
Expand Down Expand Up @@ -597,7 +597,7 @@ dasd_delete_device(struct dasd_device *device)

/* Disconnect dasd_device structure from ccw_device structure. */
spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags);
device->cdev->dev.driver_data = NULL;
dev_set_drvdata(&device->cdev->dev, NULL);
spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags);

/*
Expand Down Expand Up @@ -638,7 +638,7 @@ dasd_put_device_wake(struct dasd_device *device)
struct dasd_device *
dasd_device_from_cdev_locked(struct ccw_device *cdev)
{
struct dasd_device *device = cdev->dev.driver_data;
struct dasd_device *device = dev_get_drvdata(&cdev->dev);

if (!device)
return ERR_PTR(-ENODEV);
Expand Down

0 comments on commit d1eea93

Please sign in to comment.