Commit bcb83a19 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Brian Norris

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: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 80204124
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment