Skip to content

Commit

Permalink
mfd: Enabling twl4030_wdt and pwrbutton only for Triton
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Keerthy authored and Samuel Ortiz committed Mar 23, 2011
1 parent f40dff9 commit 153617f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/twl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,13 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)

}

if (twl_has_watchdog()) {
if (twl_has_watchdog() && twl_class_is_4030()) {
child = add_child(0, "twl4030_wdt", NULL, 0, false, 0, 0);
if (IS_ERR(child))
return PTR_ERR(child);
}

if (twl_has_pwrbutton()) {
if (twl_has_pwrbutton() && twl_class_is_4030()) {
child = add_child(1, "twl4030_pwrbutton",
NULL, 0, true, pdata->irq_base + 8 + 0, 0);
if (IS_ERR(child))
Expand Down

0 comments on commit 153617f

Please sign in to comment.