Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151279
b: refs/heads/master
c: a1b4b12
h: refs/heads/master
i:
  151277: ee89360
  151275: 70711cd
  151271: 973e042
  151263: 01ac14e
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jun 16, 2009
1 parent 63aaf92 commit 24365a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 0e968a3b6da710294a56460473cac32dc821fd4a
refs/heads/master: a1b4b12b372e76d22d4f3bf58b47e4cf2fb132fe
14 changes: 7 additions & 7 deletions trunk/drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,12 @@ static int blkfront_probe(struct xenbus_device *dev,

/* Front end dir is a number, which is used as the id. */
info->handle = simple_strtoul(strrchr(dev->nodename, '/')+1, NULL, 0);
dev->dev.driver_data = info;
dev_set_drvdata(&dev->dev, info);

err = talk_to_backend(dev, info);
if (err) {
kfree(info);
dev->dev.driver_data = NULL;
dev_set_drvdata(&dev->dev, NULL);
return err;
}

Expand Down Expand Up @@ -843,7 +843,7 @@ static int blkif_recover(struct blkfront_info *info)
*/
static int blkfront_resume(struct xenbus_device *dev)
{
struct blkfront_info *info = dev->dev.driver_data;
struct blkfront_info *info = dev_get_drvdata(&dev->dev);
int err;

dev_dbg(&dev->dev, "blkfront_resume: %s\n", dev->nodename);
Expand Down Expand Up @@ -922,7 +922,7 @@ static void blkfront_connect(struct blkfront_info *info)
*/
static void blkfront_closing(struct xenbus_device *dev)
{
struct blkfront_info *info = dev->dev.driver_data;
struct blkfront_info *info = dev_get_drvdata(&dev->dev);
unsigned long flags;

dev_dbg(&dev->dev, "blkfront_closing: %s removed\n", dev->nodename);
Expand Down Expand Up @@ -957,7 +957,7 @@ static void blkfront_closing(struct xenbus_device *dev)
static void backend_changed(struct xenbus_device *dev,
enum xenbus_state backend_state)
{
struct blkfront_info *info = dev->dev.driver_data;
struct blkfront_info *info = dev_get_drvdata(&dev->dev);
struct block_device *bd;

dev_dbg(&dev->dev, "blkfront:backend_changed.\n");
Expand Down Expand Up @@ -997,7 +997,7 @@ static void backend_changed(struct xenbus_device *dev,

static int blkfront_remove(struct xenbus_device *dev)
{
struct blkfront_info *info = dev->dev.driver_data;
struct blkfront_info *info = dev_get_drvdata(&dev->dev);

dev_dbg(&dev->dev, "blkfront_remove: %s removed\n", dev->nodename);

Expand All @@ -1010,7 +1010,7 @@ static int blkfront_remove(struct xenbus_device *dev)

static int blkfront_is_ready(struct xenbus_device *dev)
{
struct blkfront_info *info = dev->dev.driver_data;
struct blkfront_info *info = dev_get_drvdata(&dev->dev);

return info->is_ready;
}
Expand Down

0 comments on commit 24365a6

Please sign in to comment.