mini2440: code cleanup

Signed-off-by: Fudong Bai <fudongbai@gmail.com>