Merge tag 'for-4.9' of github.com:linux-nand/linux
[cascardo/linux.git] / drivers / mtd / nand / pxa3xx_nand.c
index 436dd6d..b121bf4 100644 (file)
@@ -1810,8 +1810,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
                chip->cmdfunc           = nand_cmdfunc;
        }
 
-       spin_lock_init(&chip->controller->lock);
-       init_waitqueue_head(&chip->controller->wq);
+       nand_hw_control_init(chip->controller);
        info->clk = devm_clk_get(&pdev->dev, NULL);
        if (IS_ERR(info->clk)) {
                dev_err(&pdev->dev, "failed to get nand clock\n");