mtd: nand: gpmi: unify clock handling
authorStefan Agner <stefan@agner.ch>
Sat, 22 Apr 2017 01:23:34 +0000 (18:23 -0700)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 1 Jun 2017 08:09:25 +0000 (10:09 +0200)
commit6b7ee72149a4a6963e361c5324cea2961f17989a
treedcd30dd3a1139981a8aac836f2732cba9fc60bbd
parent086567f12e1188c57e061a53825a5eff5a7923a0
mtd: nand: gpmi: unify clock handling

Add device specific list of clocks required, and handle all clocks
in a single for loop. This avoids further code duplication when
adding i.MX 7 support.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.h