aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/lguest_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest/lguest_device.c')
-rw-r--r--drivers/lguest/lguest_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c
index a661bbdae3d..915da6b8c92 100644
--- a/drivers/lguest/lguest_device.c
+++ b/drivers/lguest/lguest_device.c
@@ -250,7 +250,7 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev,
250 /* Figure out how many pages the ring will take, and map that memory */ 250 /* Figure out how many pages the ring will take, and map that memory */
251 lvq->pages = lguest_map((unsigned long)lvq->config.pfn << PAGE_SHIFT, 251 lvq->pages = lguest_map((unsigned long)lvq->config.pfn << PAGE_SHIFT,
252 DIV_ROUND_UP(vring_size(lvq->config.num, 252 DIV_ROUND_UP(vring_size(lvq->config.num,
253 PAGE_SIZE), 253 LGUEST_VRING_ALIGN),
254 PAGE_SIZE)); 254 PAGE_SIZE));
255 if (!lvq->pages) { 255 if (!lvq->pages) {
256 err = -ENOMEM; 256 err = -ENOMEM;
@@ -259,8 +259,8 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev,
259 259
260 /* OK, tell virtio_ring.c to set up a virtqueue now we know its size 260 /* OK, tell virtio_ring.c to set up a virtqueue now we know its size
261 * and we've got a pointer to its pages. */ 261 * and we've got a pointer to its pages. */
262 vq = vring_new_virtqueue(lvq->config.num, vdev, lvq->pages, 262 vq = vring_new_virtqueue(lvq->config.num, LGUEST_VRING_ALIGN,
263 lg_notify, callback); 263 vdev, lvq->pages, lg_notify, callback);
264 if (!vq) { 264 if (!vq) {
265 err = -ENOMEM; 265 err = -ENOMEM;
266 goto unmap; 266 goto unmap;
@@ -272,7 +272,7 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev,
272 * the interrupt as a source of randomness: it'd be nice to have that 272 * the interrupt as a source of randomness: it'd be nice to have that
273 * back.. */ 273 * back.. */
274 err = request_irq(lvq->config.irq, vring_interrupt, IRQF_SHARED, 274 err = request_irq(lvq->config.irq, vring_interrupt, IRQF_SHARED,
275 vdev->dev.bus_id, vq); 275 dev_name(&vdev->dev), vq);
276 if (err) 276 if (err)
277 goto destroy_vring; 277 goto destroy_vring;
278 278