Skip to content

Commit

Permalink
regulator: isl6271a: Allow missing init_data for diagnostics
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Marek Vasut <[email protected]>
  • Loading branch information
broonie committed Apr 4, 2012
1 parent 02b5521 commit 8df8d8a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/regulator/isl6271a-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8df8d8a

Please sign in to comment.