Skip to content

Commit

Permalink
Revert "bcm2708_fb: Hack out dma support"
Browse files Browse the repository at this point in the history
This reverts commit d60956f.
  • Loading branch information
popcornmix authored and pelwell committed Oct 13, 2023
1 parent 5ca6201 commit 392b984
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 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 @@ -1111,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 @@ -1144,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

0 comments on commit 392b984

Please sign in to comment.