rk2926:m713:slove io conflict for act8931 and tps65910
author张晴 <zhangqing@rock-chips.com>
Wed, 17 Oct 2012 09:55:43 +0000 (17:55 +0800)
committer张晴 <zhangqing@rock-chips.com>
Wed, 17 Oct 2012 09:55:43 +0000 (17:55 +0800)
drivers/mfd/tps65910.c

index 6b16534548ad24d24bf4860ca2bda08488a2298d..181d68aa59025d39c94f094792a2586ea43437bb 100755 (executable)
@@ -268,6 +268,12 @@ static int tps65910_i2c_probe(struct i2c_client *i2c,
                              NULL, 0);
        if (ret < 0)
                goto err;
+
+       ret = tps65910_reg_read(tps65910,0x22);
+       if ((ret < 0) || (ret == 0xff)){
+               printk("The device is not tps65910\n");
+               goto err;
+       }
        
        g_tps65910 = tps65910;