sunxi: Move await_completion dram helper to dram.h
authorHans de Goede <hdegoede@redhat.com>
Mon, 8 Dec 2014 12:38:21 +0000 (13:38 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Jan 2015 13:56:37 +0000 (14:56 +0100)
commit07f4fe7d7d94b03204dabd40b548bed4f796894c
treed6f5cf88a708b2bf6e9e617fe44636d0b2fa3e13
parent1aac47bd1bf8f1f4a5f12bf7c8e06a18e5b649b4
sunxi: Move await_completion dram helper to dram.h

The await_completion helper is already copy pasted between the sun4i and sun6i
dram code, and we need it for sun8i too, so lets make it an inline helper in
dram.h, rather then adding yet another copy.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/dram_sun4i.c
arch/arm/cpu/armv7/sunxi/dram_sun6i.c
arch/arm/include/asm/arch-sunxi/dram.h