media: platform: Aspeed: Make reserved memory optional
authorEddie James <eajames@linux.ibm.com>
Wed, 24 Apr 2019 15:16:58 +0000 (11:16 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 30 Apr 2019 17:50:47 +0000 (13:50 -0400)
Reserved memory doesn't need to be required; system memory would work
fine.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/aspeed-video.c

index 55c55a6..8144fe3 100644 (file)
@@ -1608,11 +1608,7 @@ static int aspeed_video_init(struct aspeed_video *video)
                return PTR_ERR(video->vclk);
        }
 
-       rc = of_reserved_mem_device_init(dev);
-       if (rc) {
-               dev_err(dev, "Unable to reserve memory\n");
-               return rc;
-       }
+       of_reserved_mem_device_init(dev);
 
        rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
        if (rc) {