sunxi_nand_spl: Turn off clocks when we're done with the nand
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 09:59:25 +0000 (11:59 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 06:43:41 +0000 (08:43 +0200)
commit5d65c67bf10bc5a815023ac13a2689aee9956d92
treea11837662d5d00067d225e66e9ec2638eef8d71e
parent31c21471debbc9cec7466088da4fe2ee970d33b6
sunxi_nand_spl: Turn off clocks when we're done with the nand

Turn off the nand and dma clocks when we're done with the nand, this
puts the nand and dma controllers back into a clean state for when the
kernel boots.

Without this the kernel will not boot properly when it is built with
dma-controller support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/sunxi_nand_spl.c