diff options
Diffstat (limited to 'drivers/mfd/twl-core.c')
-rw-r--r-- | drivers/mfd/twl-core.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index a35fa7dcbf53..960b5bed7f52 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c | |||
@@ -721,13 +721,13 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features) | |||
721 | 721 | ||
722 | } | 722 | } |
723 | 723 | ||
724 | if (twl_has_watchdog()) { | 724 | if (twl_has_watchdog() && twl_class_is_4030()) { |
725 | child = add_child(0, "twl4030_wdt", NULL, 0, false, 0, 0); | 725 | child = add_child(0, "twl4030_wdt", NULL, 0, false, 0, 0); |
726 | if (IS_ERR(child)) | 726 | if (IS_ERR(child)) |
727 | return PTR_ERR(child); | 727 | return PTR_ERR(child); |
728 | } | 728 | } |
729 | 729 | ||
730 | if (twl_has_pwrbutton()) { | 730 | if (twl_has_pwrbutton() && twl_class_is_4030()) { |
731 | child = add_child(1, "twl4030_pwrbutton", | 731 | child = add_child(1, "twl4030_pwrbutton", |
732 | NULL, 0, true, pdata->irq_base + 8 + 0, 0); | 732 | NULL, 0, true, pdata->irq_base + 8 + 0, 0); |
733 | if (IS_ERR(child)) | 733 | if (IS_ERR(child)) |
@@ -864,6 +864,10 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features) | |||
864 | child = add_regulator(TWL6030_REG_VAUX3_6030, pdata->vaux3); | 864 | child = add_regulator(TWL6030_REG_VAUX3_6030, pdata->vaux3); |
865 | if (IS_ERR(child)) | 865 | if (IS_ERR(child)) |
866 | return PTR_ERR(child); | 866 | return PTR_ERR(child); |
867 | |||
868 | child = add_regulator(TWL6030_REG_CLK32KG, pdata->clk32kg); | ||
869 | if (IS_ERR(child)) | ||
870 | return PTR_ERR(child); | ||
867 | } | 871 | } |
868 | 872 | ||
869 | if (twl_has_bci() && pdata->bci && | 873 | if (twl_has_bci() && pdata->bci && |