Commit 48cc8f7a authored by Christoph Hellwig's avatar Christoph Hellwig

sparc: use DT node full_name in sparc_dma_alloc_resource

The sparc tree already has this change for the pre-refactored code,
but pulling it into the dma-mapping tree like this should ease
the merge conflicts a bit.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
parent 6aa69750
...@@ -252,7 +252,7 @@ unsigned long sparc_dma_alloc_resource(struct device *dev, size_t len) ...@@ -252,7 +252,7 @@ unsigned long sparc_dma_alloc_resource(struct device *dev, size_t len)
res = kzalloc(sizeof(*res), GFP_KERNEL); res = kzalloc(sizeof(*res), GFP_KERNEL);
if (!res) if (!res)
return 0; return 0;
res->name = dev->of_node->name; res->name = dev->of_node->full_name;
if (allocate_resource(&_sparc_dvma, res, len, _sparc_dvma.start, if (allocate_resource(&_sparc_dvma, res, len, _sparc_dvma.start,
_sparc_dvma.end, PAGE_SIZE, NULL, NULL) != 0) { _sparc_dvma.end, PAGE_SIZE, NULL, NULL) != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment