rk2928:m720:compat pmic act8931 and tps65910

This commit is contained in:
张晴
2012-09-17 11:52:39 +08:00
parent 1eb77f42db
commit 707acf2b87
2 changed files with 7 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ CONFIG_MFD_TPS65910=y
CONFIG_MFD_TPS65090=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_TPS65910=y
CONFIG_REGULATOR_ACT8931=y
CONFIG_RK30_PWM_REGULATOR=y
CONFIG_MEDIA_SUPPORT=y
CONFIG_VIDEO_DEV=y

View File

@@ -562,6 +562,12 @@ static int __devinit act8931_i2c_probe(struct i2c_client *i2c, const struct i2c_
act8931->dev = &i2c->dev;
i2c_set_clientdata(i2c, act8931);
mutex_init(&act8931->io_lock);
ret = act8931_reg_read(act8931,0x22);
if ((ret < 0) || (ret == 0xff)){
printk("The device is not act8931 \n");
return 0;
}
if (pdata) {
ret = setup_regulators(act8931, pdata);