Skip to content

Commit

Permalink
media: platform: Aspeed: Make reserved memory optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eddie James authored and Mauro Carvalho Chehab committed Apr 30, 2019
1 parent b28cf7a commit 54b0210
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/media/platform/aspeed-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 54b0210

Please sign in to comment.