Skip to content

Commit

Permalink
[SPARC]: show device name in /proc/dvma_map
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Habets authored and David S. Miller committed May 8, 2006
1 parent bb3426a commit 4cfbd7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sparc/kernel/ioport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4cfbd7e

Please sign in to comment.