diff options
author | Marc Gonzalez <marc_gonzalez@sigmadesigns.com> | 2016-07-27 05:23:52 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-09-23 03:35:16 -0400 |
commit | d45bc58dd3bdcaabc1d7d8d9b0b8dee826635cc6 (patch) | |
tree | a2ba9413cf9dcaeff353b9a065e5db3fab2651ae /drivers/mtd/nand/s3c2410.c | |
parent | 29b4817d4018df78086157ea3a55c1d9424a7cfc (diff) |
mtd: nand: import nand_hw_control_init()
The code to initialize a struct nand_hw_control is duplicated across
several drivers. Factorize it using an inline function.
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index d9309cf0ce2e..b1734d76cbc1 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -977,8 +977,7 @@ static int s3c24xx_nand_probe(struct platform_device *pdev) | |||
977 | 977 | ||
978 | platform_set_drvdata(pdev, info); | 978 | platform_set_drvdata(pdev, info); |
979 | 979 | ||
980 | spin_lock_init(&info->controller.lock); | 980 | nand_hw_control_init(&info->controller); |
981 | init_waitqueue_head(&info->controller.wq); | ||
982 | 981 | ||
983 | /* get the clock source and enable it */ | 982 | /* get the clock source and enable it */ |
984 | 983 | ||