summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-10-21 09:45:54 -0700
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-10-29 14:40:40 +0100
commit0e04b2ff7123378c7b41a0bf8156a466a49d730a (patch)
tree298602b5b246befa2fedf11cc8ae7b8d3b7aa871 /drivers/mtd
parentf34a5072c46510b20017d7703bc424dd695b3429 (diff)
downloadblackbird-op-linux-0e04b2ff7123378c7b41a0bf8156a466a49d730a.tar.gz
blackbird-op-linux-0e04b2ff7123378c7b41a0bf8156a466a49d730a.zip
mtd: rawnand: brcmnand: Fix NULL pointer assignment
Sparse complained about the following: drivers/mtd/nand/raw/brcmnand/brcmnand.c:921:40: warning: Using plain integer as NULL pointer fix this issue by assigning the pointer to NULL. Fixes: c1ac2dc34b51 ("mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/brcmnand/brcmnand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
index 63588334b0c1..1a66b1cd51c0 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
@@ -932,7 +932,7 @@ static inline void disable_ctrl_irqs(struct brcmnand_controller *ctrl)
return;
if (has_flash_dma(ctrl)) {
- ctrl->flash_dma_base = 0;
+ ctrl->flash_dma_base = NULL;
disable_irq(ctrl->dma_irq);
}
OpenPOWER on IntegriCloud