From: Martin Habets Date: Mon, 8 May 2006 06:43:19 +0000 (-0700) Subject: [SPARC]: show device name in /proc/dvma_map X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cfbd7eb24975e942c3b6c0119c953c3a7a5f787;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [SPARC]: show device name in /proc/dvma_map This patch will set the device name in a resource, which will be shown in /proc/dvma_map. Signed-off-by: Martin Habets Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 460f72e640e..f9ff2973484 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c @@ -274,6 +274,11 @@ void *sbus_alloc_consistent(struct sbus_dev *sdev, long len, u32 *dma_addrp) if (mmu_map_dma_area(dma_addrp, va, res->start, len_total) != 0) goto err_noiommu; + /* Set the resource name, if known. */ + if (sdev) { + res->name = sdev->prom_name; + } + return (void *)res->start; err_noiommu: