[PATCH] sparc: show device name in /proc/dvma_map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch will set the device name in a resource, which will be shown
in /proc/dvma_map.

Please apply. Thanks,
-- 
Martin

	Signed-off-by: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>

--- 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:
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux