diff options
author | Keerthy <j-keerthy@ti.com> | 2011-02-23 05:56:54 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:49 -0400 |
commit | 153617fdd3e88fc9f8ea0bcd664671054645180f (patch) | |
tree | 71bc204a9a9953897ccaa4ed439bc79a7f8ab25c | |
parent | f40dff9edbf1daa14068542d60ae22df78e8c74a (diff) |
mfd: Enabling twl4030_wdt and pwrbutton only for Triton
Enabling twl4030_wdt and twl4030_pwrbutton only for Triton i.e for
TWL4030 and TWL5030. This is to be excluded for Phoenix TWL6030.
Tested OMAP4 blaze, OMAP2430, OMAP3630 boot up.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/mfd/twl-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 7d909cc8670d..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)) |