diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-10-21 09:45:54 -0700 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-10-29 14:40:40 +0100 |
commit | 0e04b2ff7123378c7b41a0bf8156a466a49d730a (patch) | |
tree | 298602b5b246befa2fedf11cc8ae7b8d3b7aa871 /drivers | |
parent | f34a5072c46510b20017d7703bc424dd695b3429 (diff) | |
download | linux-0e04b2ff7123378c7b41a0bf8156a466a49d730a.tar.gz linux-0e04b2ff7123378c7b41a0bf8156a466a49d730a.tar.bz2 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')
-rw-r--r-- | drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 |
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); } |