From: Eddie James Date: Wed, 24 Apr 2019 15:16:58 +0000 (-0400) Subject: media: platform: Aspeed: Make reserved memory optional X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=54b021099e2d20db324f2581cc0f18f9b22aadfa;p=openwrt%2Fstaging%2Fblogic.git media: platform: Aspeed: Make reserved memory optional Reserved memory doesn't need to be required; system memory would work fine. Signed-off-by: Eddie James Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index 55c55a68b016..8144fe36ad48 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -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) {