[PATCH v4 3/4] drivers: of: add initialization code for dma reserved memory
From: Michal Nazarewicz <hidden>
Date: 2013-08-06 15:07:21
Also in:
linux-devicetree
From: Michal Nazarewicz <hidden>
Date: 2013-08-06 15:07:21
Also in:
linux-devicetree
On Tue, Aug 06 2013, Rob Herring wrote:
quoted
+static void reserved_mem_release_device_from_dt(struct device *dev) +{ + struct reserved_mem *region = get_dma_memory_region(dev); + if (!region) + return; + if (!region->cma)if (region && !region->cma)
!region case is handled two lines above, so no need to check if region is not null.
quoted
+ dma_release_declared_memory(dev); +}
-- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Micha? ?mina86? Nazarewicz (o o) ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo-- -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130806/403761e4/attachment.sig>