]> git.baikalelectronics.ru Git - kernel.git/commitdiff
sparc: use DT node full_name in sparc_dma_alloc_resource
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Dec 2018 16:09:58 +0000 (17:09 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 09:06:04 +0000 (10:06 +0100)
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: Christoph Hellwig <hch@lst.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: David Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c

index 51c128d8019372f219e06e7cb8d4a5baec58631d..baa235652c274b87a847bdfebc603a23f490ad6a 100644 (file)
@@ -252,7 +252,7 @@ unsigned long sparc_dma_alloc_resource(struct device *dev, size_t len)
        res = kzalloc(sizeof(*res), GFP_KERNEL);
        if (!res)
                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,
                              _sparc_dvma.end, PAGE_SIZE, NULL, NULL) != 0) {