Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2069,7 +2069,7 @@ int brcmnand_probe(struct platform_device *pdev, struct brcmnand_soc *soc)
{
{
	struct device *dev = &pdev->dev;
	struct device *dev = &pdev->dev;
	struct device_node *dn = dev->of_node, *child;
	struct device_node *dn = dev->of_node, *child;
	static struct brcmnand_controller *ctrl;
	struct brcmnand_controller *ctrl;
	struct resource *res;
	struct resource *res;
	int ret;
	int ret;