diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-09 15:05:51 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 18:25:58 -0400 |
commit | 8812293323a79134e06c3bf82eba1e217d23382e (patch) | |
tree | 1ed566d7d7c58f77942fb4f0dd48e43fb098932a /drivers/xen/blkback/xenbus.c | |
parent | 4d05a28db56225bbab5e1321d818f318e92a4657 (diff) |
xen-blkback-porting
Diffstat (limited to 'drivers/xen/blkback/xenbus.c')
-rw-r--r-- | drivers/xen/blkback/xenbus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/xen/blkback/xenbus.c b/drivers/xen/blkback/xenbus.c index 80d9aa6e6ba3..650f4b3e9b3c 100644 --- a/drivers/xen/blkback/xenbus.c +++ b/drivers/xen/blkback/xenbus.c | |||
@@ -238,8 +238,8 @@ static int blkback_probe(struct xenbus_device *dev, | |||
238 | /* setup back pointer */ | 238 | /* setup back pointer */ |
239 | be->blkif->be = be; | 239 | be->blkif->be = be; |
240 | 240 | ||
241 | err = xenbus_watch_path2(dev, dev->nodename, "physical-device", | 241 | err = xenbus_watch_pathfmt(dev, &be->backend_watch, backend_changed, |
242 | &be->backend_watch, backend_changed); | 242 | "%s/%s", dev->nodename, "physical-device"); |
243 | if (err) | 243 | if (err) |
244 | goto fail; | 244 | goto fail; |
245 | 245 | ||
@@ -537,5 +537,6 @@ static struct xenbus_driver blkback = { | |||
537 | 537 | ||
538 | void blkif_xenbus_init(void) | 538 | void blkif_xenbus_init(void) |
539 | { | 539 | { |
540 | xenbus_register_backend(&blkback); | 540 | /* XXX must_check */ |
541 | (void)xenbus_register_backend(&blkback); | ||
541 | } | 542 | } |