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>
{
struct device *dev = &pdev->dev;
struct device_node *dn = dev->of_node, *child;
{
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;
struct resource *res;
int ret;