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/block/xen-blkfront.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/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index c1996829d5ec..e53284767f7c 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -753,12 +753,12 @@ static int blkfront_probe(struct xenbus_device *dev, | |||
753 | 753 | ||
754 | /* Front end dir is a number, which is used as the id. */ | 754 | /* Front end dir is a number, which is used as the id. */ |
755 | info->handle = simple_strtoul(strrchr(dev->nodename, '/')+1, NULL, 0); | 755 | info->handle = simple_strtoul(strrchr(dev->nodename, '/')+1, NULL, 0); |
756 | dev->dev.driver_data = info; | 756 | dev_set_drvdata(&dev->dev, info); |
757 | 757 | ||
758 | err = talk_to_backend(dev, info); | 758 | err = talk_to_backend(dev, info); |
759 | if (err) { | 759 | if (err) { |
760 | kfree(info); | 760 | kfree(info); |
761 | dev->dev.driver_data = NULL; | 761 | dev_set_drvdata(&dev->dev, NULL); |
762 | return err; | 762 | return err; |
763 | } | 763 | } |
764 | 764 | ||
@@ -843,7 +843,7 @@ static int blkif_recover(struct blkfront_info *info) | |||
843 | */ | 843 | */ |
844 | static int blkfront_resume(struct xenbus_device *dev) | 844 | static int blkfront_resume(struct xenbus_device *dev) |
845 | { | 845 | { |
846 | struct blkfront_info *info = dev->dev.driver_data; | 846 | struct blkfront_info *info = dev_get_drvdata(&dev->dev); |
847 | int err; | 847 | int err; |
848 | 848 | ||
849 | dev_dbg(&dev->dev, "blkfront_resume: %s\n", dev->nodename); | 849 | dev_dbg(&dev->dev, "blkfront_resume: %s\n", dev->nodename); |
@@ -922,7 +922,7 @@ static void blkfront_connect(struct blkfront_info *info) | |||
922 | */ | 922 | */ |
923 | static void blkfront_closing(struct xenbus_device *dev) | 923 | static void blkfront_closing(struct xenbus_device *dev) |
924 | { | 924 | { |
925 | struct blkfront_info *info = dev->dev.driver_data; | 925 | struct blkfront_info *info = dev_get_drvdata(&dev->dev); |
926 | unsigned long flags; | 926 | unsigned long flags; |
927 | 927 | ||
928 | dev_dbg(&dev->dev, "blkfront_closing: %s removed\n", dev->nodename); | 928 | dev_dbg(&dev->dev, "blkfront_closing: %s removed\n", dev->nodename); |
@@ -957,7 +957,7 @@ static void blkfront_closing(struct xenbus_device *dev) | |||
957 | static void backend_changed(struct xenbus_device *dev, | 957 | static void backend_changed(struct xenbus_device *dev, |
958 | enum xenbus_state backend_state) | 958 | enum xenbus_state backend_state) |
959 | { | 959 | { |
960 | struct blkfront_info *info = dev->dev.driver_data; | 960 | struct blkfront_info *info = dev_get_drvdata(&dev->dev); |
961 | struct block_device *bd; | 961 | struct block_device *bd; |
962 | 962 | ||
963 | dev_dbg(&dev->dev, "blkfront:backend_changed.\n"); | 963 | dev_dbg(&dev->dev, "blkfront:backend_changed.\n"); |
@@ -997,7 +997,7 @@ static void backend_changed(struct xenbus_device *dev, | |||
997 | 997 | ||
998 | static int blkfront_remove(struct xenbus_device *dev) | 998 | static int blkfront_remove(struct xenbus_device *dev) |
999 | { | 999 | { |
1000 | struct blkfront_info *info = dev->dev.driver_data; | 1000 | struct blkfront_info *info = dev_get_drvdata(&dev->dev); |
1001 | 1001 | ||
1002 | dev_dbg(&dev->dev, "blkfront_remove: %s removed\n", dev->nodename); | 1002 | dev_dbg(&dev->dev, "blkfront_remove: %s removed\n", dev->nodename); |
1003 | 1003 | ||
@@ -1010,7 +1010,7 @@ static int blkfront_remove(struct xenbus_device *dev) | |||
1010 | 1010 | ||
1011 | static int blkfront_is_ready(struct xenbus_device *dev) | 1011 | static int blkfront_is_ready(struct xenbus_device *dev) |
1012 | { | 1012 | { |
1013 | struct blkfront_info *info = dev->dev.driver_data; | 1013 | struct blkfront_info *info = dev_get_drvdata(&dev->dev); |
1014 | 1014 | ||
1015 | return info->is_ready; | 1015 | return info->is_ready; |
1016 | } | 1016 | } |