summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMartin Habets <errandir_news@mph.eclipse.co.uk>2006-05-07 23:43:19 -0700
committerDavid S. Miller <davem@davemloft.net>2006-05-07 23:43:19 -0700
commit4cfbd7eb24975e942c3b6c0119c953c3a7a5f787 (patch)
treedbda6c396a00aa89beaedf2fb00d047c3335f825 /arch
parentbb3426ad6659282d9244d4909e69aa639d0360d0 (diff)
downloadlinux-3.10-4cfbd7eb24975e942c3b6c0119c953c3a7a5f787.tar.gz
linux-3.10-4cfbd7eb24975e942c3b6c0119c953c3a7a5f787.tar.bz2
linux-3.10-4cfbd7eb24975e942c3b6c0119c953c3a7a5f787.zip
[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 <errandir_news@mph.eclipse.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/kernel/ioport.c5
1 files changed, 5 insertions, 0 deletions
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: