Re: [PATCH 2/4] MFD: RK808: Add new mfd device for RK808

2014-08-17 Thread Mark Brown
On Sun, Aug 17, 2014 at 09:58:25AM +0800, Chris Zhong wrote: > +static void rk808_device_shutdown(void) > +{ > + int ret; > + struct rk808 *rk808 = g_rk808; > + > + if (!rk808) { > + dev_err(rk808->dev, "%s have no g_rk808\n", __func__); > + return; > + } T

[PATCH 2/4] MFD: RK808: Add new mfd device for RK808

2014-08-16 Thread Chris Zhong
The RK808 chip is a power management IC for multimedia and handheld devices. It contains the following components: - Regulators - RTC The rk808 core driver is registered as a platform driver and provides communication through I2C with the host device for the different components. Signed-off-by: