regulator: isl6271a: Allow missing init_data for diagnostics
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Apr 2012 22:28:21 +0000 (23:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 4 Apr 2012 10:39:03 +0000 (11:39 +0100)
The regulator core supports this to allow the configuration to be inspected
at runtime even if no software mangement is enabled.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
drivers/regulator/isl6271a-regulator.c

index 775f5fd208c375e87690f6fb48b7bb38893e566f..6539ef9337cf77c1876b18a53e72ff14bdbee4ae 100644 (file)
@@ -147,11 +147,6 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c,
        if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
                return -EIO;
 
-       if (!init_data) {
-               dev_err(&i2c->dev, "no platform data supplied\n");
-               return -EIO;
-       }
-
        pmic = kzalloc(sizeof(struct isl_pmic), GFP_KERNEL);
        if (!pmic)
                return -ENOMEM;