bcm2708_fb: Fix more build warnings
authorPhil Elwell <phil@raspberrypi.com>
Thu, 1 Sep 2022 16:51:54 +0000 (17:51 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:46 +0000 (11:34 +0000)
drivers/video/fbdev/bcm2708_fb.c

index 135260c..2cebb5a 100644 (file)
@@ -955,6 +955,7 @@ 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;
@@ -972,6 +973,7 @@ 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,
@@ -1195,12 +1197,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;