Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251208
b: refs/heads/master
c: 5cf6e4f
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 723c77f commit 5ab02b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: e7579a99b598f8e4a2b4df4854fbda2cc961bb02
refs/heads/master: 5cf6e4f6f6d5549904db6ecb3ffd5b8f71f41250
10 changes: 5 additions & 5 deletions trunk/drivers/xen/blkback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static void update_blkif_status(blkif_t *blkif)
char *buf) \
{ \
struct xenbus_device *dev = to_xenbus_device(_dev); \
struct backend_info *be = dev->dev.driver_data; \
struct backend_info *be = dev_get_drvdata(&dev->dev); \
\
return sprintf(buf, format, ##args); \
} \
Expand Down Expand Up @@ -169,7 +169,7 @@ void xenvbd_sysfs_delif(struct xenbus_device *dev)

static int blkback_remove(struct xenbus_device *dev)
{
struct backend_info *be = dev->dev.driver_data;
struct backend_info *be = dev_get_drvdata(&dev->dev);

DPRINTK("");

Expand All @@ -190,7 +190,7 @@ static int blkback_remove(struct xenbus_device *dev)
}

kfree(be);
dev->dev.driver_data = NULL;
dev_set_drvdata(&dev->dev, NULL);
return 0;
}

Expand Down Expand Up @@ -225,7 +225,7 @@ static int blkback_probe(struct xenbus_device *dev,
return -ENOMEM;
}
be->dev = dev;
dev->dev.driver_data = be;
dev_set_drvdata(&dev->dev, be);

be->blkif = blkif_alloc(dev->otherend_id);
if (IS_ERR(be->blkif)) {
Expand Down Expand Up @@ -348,7 +348,7 @@ static void backend_changed(struct xenbus_watch *watch,
static void frontend_changed(struct xenbus_device *dev,
enum xenbus_state frontend_state)
{
struct backend_info *be = dev->dev.driver_data;
struct backend_info *be = dev_get_drvdata(&dev->dev);
int err;

DPRINTK("%s", xenbus_strstate(frontend_state));
Expand Down

0 comments on commit 5ab02b6

Please sign in to comment.