diff options
Diffstat (limited to 'drivers/regulator/ab8500-ext.c')
-rw-r--r-- | drivers/regulator/ab8500-ext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/regulator/ab8500-ext.c b/drivers/regulator/ab8500-ext.c index debae34b9dd4..1e92e0103380 100644 --- a/drivers/regulator/ab8500-ext.c +++ b/drivers/regulator/ab8500-ext.c @@ -393,6 +393,12 @@ int ab8500_ext_regulator_init(struct platform_device *pdev) config.init_data = &pdata->ext_regulator[i]; config.driver_data = info; + if (is_ab9540(ab8500) && + ((info->desc.id == AB8500_EXT_SUPPLY1) || + (info->desc.id == AB8500_EXT_SUPPLY2) || + (info->desc.id == AB8500_EXT_SUPPLY3))) + info->desc.ops = &ab8500_ext_regulator_ops; + /* register regulator with framework */ info->rdev = regulator_register(&info->desc, &config); |