diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-05-17 17:41:01 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-05-18 11:02:49 -0700 |
commit | bcb83a19d3ac95fe3c0e79e942fb628120738853 (patch) | |
tree | 7d388e3665542ad9312cc50e347a3d322e236ee0 /drivers/mtd | |
parent | 802041247a0abbeaf1dddb8a8d56f491762ae357 (diff) | |
download | linux-bcb83a19d3ac95fe3c0e79e942fb628120738853.tar.gz linux-bcb83a19d3ac95fe3c0e79e942fb628120738853.tar.bz2 linux-bcb83a19d3ac95fe3c0e79e942fb628120738853.zip |
mtd: brcmnand: do not make local variable static
Remove static in front of ctrl. This variable should not be shared
between different instances of brcmnand_probe(), it should be local to
this function and stored on the stack.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/brcmnand/brcmnand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c index bae30ab8f12f..a48ad49c7acc 100644 --- a/drivers/mtd/nand/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/brcmnand/brcmnand.c @@ -2069,7 +2069,7 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc) { struct device *dev = &pdev->dev; struct device_node *dn = dev->of_node, *child; - static struct brcmnand_controller *ctrl; + struct brcmnand_controller *ctrl; struct resource *res; int ret; |