diff options
Diffstat (limited to 'drivers/input/misc/xen-kbdfront.c')
-rw-r--r-- | drivers/input/misc/xen-kbdfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/xen-kbdfront.c b/drivers/input/misc/xen-kbdfront.c index 95599e478e19..23d0549539d4 100644 --- a/drivers/input/misc/xen-kbdfront.c +++ b/drivers/input/misc/xen-kbdfront.c | |||
@@ -232,7 +232,7 @@ static int xenkbd_connect_backend(struct xenbus_device *dev, | |||
232 | struct xenbus_transaction xbt; | 232 | struct xenbus_transaction xbt; |
233 | 233 | ||
234 | ret = gnttab_grant_foreign_access(dev->otherend_id, | 234 | ret = gnttab_grant_foreign_access(dev->otherend_id, |
235 | virt_to_mfn(info->page), 0); | 235 | virt_to_gfn(info->page), 0); |
236 | if (ret < 0) | 236 | if (ret < 0) |
237 | return ret; | 237 | return ret; |
238 | info->gref = ret; | 238 | info->gref = ret; |
@@ -255,7 +255,7 @@ static int xenkbd_connect_backend(struct xenbus_device *dev, | |||
255 | goto error_irqh; | 255 | goto error_irqh; |
256 | } | 256 | } |
257 | ret = xenbus_printf(xbt, dev->nodename, "page-ref", "%lu", | 257 | ret = xenbus_printf(xbt, dev->nodename, "page-ref", "%lu", |
258 | virt_to_mfn(info->page)); | 258 | virt_to_gfn(info->page)); |
259 | if (ret) | 259 | if (ret) |
260 | goto error_xenbus; | 260 | goto error_xenbus; |
261 | ret = xenbus_printf(xbt, dev->nodename, "page-gref", "%u", info->gref); | 261 | ret = xenbus_printf(xbt, dev->nodename, "page-gref", "%u", info->gref); |