drm/rockchip: fix compile error when build as modules
authorMark Yao <mark.yao@rock-chips.com>
Wed, 10 Aug 2016 02:24:42 +0000 (10:24 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Wed, 10 Aug 2016 02:55:00 +0000 (10:55 +0800)
commit42867049c4419b69ecec31be6639b7900e810eb7
tree593f7b7d9b857a0e12c178ce021a9391a565288f
parentb83ef92fba2e428f69242dafce0a2f3f957d2d58
drm/rockchip: fix compile error when build as modules

Build fail with:
  ERROR: "memblock_free" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined!

memblok_free fuction not export symbol, and use the flag __init, so it
can't be used on modules.

the memblock_free function only used for loader memory manager, not use
on modules context, so just use it when build-in drm/rockchip.

Change-Id: Ib88b6ca6c61f7ef85b4126d705a4911e207b57e5
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_fb.c