update rk2818_backlight.c to correct bl suspend and resume
authorRich.jiangyk <jyk@rock-chips.com>
Thu, 16 Sep 2010 07:00:10 +0000 (15:00 +0800)
committerRich.jiangyk <jyk@rock-chips.com>
Thu, 16 Sep 2010 07:07:58 +0000 (15:07 +0800)
commitabbe71361a5711c66fef1d2244bf28b428c14d31
treefcd9f684dcf61a066c0b16b09e5dadf8b18f568e
parent0476a08c132183552d80e19200654f2089812a9d
update rk2818_backlight.c to correct bl suspend and resume

1. old rk2818_backlight.c  use CONFIG_ANDROID_POWER macro, which is no longer supported,
lyx changed to use CONFIG_HAS_EARLYSUSPEND.  This sovled lcd blanking when resuming.
2. changed backlight module init into late_initcall from rootfs_initcall, this solve the
problem of blanking when powered on.
note: code mod by lyx, commited by jyk
drivers/video/backlight/rk2818_backlight.c [changed mode: 0755->0644]