projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b5d50
)
dmaengine: moxart-dma: Drop pointless static qualifier in moxart_probe()
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 5 May 2020 10:13:53 +0000
(10:13 +0000)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 13 May 2020 12:03:17 +0000
(17:33 +0530)
There is no need to have the 'void __iomem *dma_base_addr' variable
static since new value always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link:
https://lore.kernel.org/r/20200505101353.195446-1-yuehaibing@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/moxart-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/moxart-dma.c
b/drivers/dma/moxart-dma.c
index e04499c1f27f4cc88971513f6f9123716e66c853..4ab493d463759aa852edcf3217a1c33203db06f1 100644
(file)
--- a/
drivers/dma/moxart-dma.c
+++ b/
drivers/dma/moxart-dma.c
@@
-568,7
+568,7
@@
static int moxart_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct device_node *node = dev->of_node;
struct resource *res;
-
static
void __iomem *dma_base_addr;
+ void __iomem *dma_base_addr;
int ret, i;
unsigned int irq;
struct moxart_chan *ch;