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 08:45:40 +0000 (16:45 +0800)
commit29b3db33b44bcbb0d9c399aad9939446927c9516
tree53bf6e2a717e9cbe4632f498c7700f564077e57a
parent5a8c294436e4958e2ccfe75fec63088d48c0a6cc
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.
3. updated:  close dbg info and  comments.
note: code mod by lyx, commited by jyk
drivers/video/backlight/rk2818_backlight.c