Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions drivers/video/fbdev/bcm2708_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,6 @@ static long vc_mem_copy(struct bcm2708_fb *fb, struct fb_dmacopy *ioparam)
long rc = 0;
size_t offset;

return -EFAULT;

/* restrict this to root user */
if (!uid_eq(current_euid(), GLOBAL_ROOT_UID)) {
rc = -EFAULT;
Expand Down Expand Up @@ -955,7 +953,6 @@ static void bcm2708_fb_imageblit(struct fb_info *info,
cfb_imageblit(info, image);
}

#if 0
static irqreturn_t bcm2708_fb_dma_irq(int irq, void *cxt)
{
struct bcm2708_fb_dev *fbdev = cxt;
Expand All @@ -973,7 +970,6 @@ static irqreturn_t bcm2708_fb_dma_irq(int irq, void *cxt)
wake_up(&fbdev->dma_waitq);
return IRQ_HANDLED;
}
#endif

static struct fb_ops bcm2708_fb_ops = {
.owner = THIS_MODULE,
Expand Down Expand Up @@ -1113,7 +1109,6 @@ static int bcm2708_fb_probe(struct platform_device *dev)

dev_info(&dev->dev, "FB found %d display(s)\n", num_displays);

#if 0
/* Set up the DMA information. Note we have just one set of DMA
* parameters to work with all the FB's so requires synchronising when
* being used
Expand Down Expand Up @@ -1146,7 +1141,7 @@ static int bcm2708_fb_probe(struct platform_device *dev)
"Failed to request DMA irq\n");
goto free_dma_chan;
}
#endif

rpi_firmware_property(fbdev->fw,
RPI_FIRMWARE_GET_VC_MEMORY,
&gpu_mem, sizeof(gpu_mem));
Expand Down Expand Up @@ -1197,12 +1192,12 @@ static int bcm2708_fb_probe(struct platform_device *dev)
return ret;
}

//free_dma_chan:
free_dma_chan:
bcm_dma_chan_free(fbdev->dma_chan);
//free_cb:
free_cb:
dma_free_wc(&dev->dev, SZ_64K, fbdev->cb_base,
fbdev->cb_handle);
//free_fb:
free_fb:
dev_err(&dev->dev, "probe failed, err %d\n", ret);

return ret;
Expand Down