sparc: show device name in /proc/dvma_map
PATCH 1/1 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.
Please apply. Thanks,
Signature · 18 lines
Martin Signed-off-by: Martin Habets <[email protected]> --- 2.6.16-rc2/arch/sparc/kernel/ioport.c.orig 2006-05-04 16:32:12.000000000 +0100 +++ 2.6.16-rc2/arch/sparc/kernel/ioport.c 2006-05-04 16:34:56.000000000 +0100 @@ -274,6 +274,11 @@ 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:
David S. Miller
AppliedFrom: Martin Habets <[email protected]>
Date: Thu, 4 May 2006 17:39:48 +0100
Quoted 8 lines
This patch will set the device name in a resource, which will be shown in
/proc/dvma_map.Please apply. Thanks,
Signature · 3 lines
Martin Signed-off-by: Martin Habets <[email protected]>
Applied, thanks Martin.