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>
This commit is contained in:
parent
802041247a
commit
bcb83a19d3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue