Skip to content

Commit

Permalink
watchdog: sch56xx: Use watchdog core
Browse files Browse the repository at this point in the history
Convert sch56xx drivers to the generic watchdog core.

Note this patch depends on the "watchdog: Add multiple device support" patch
from Alan Cox.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Hans de Goede authored and Wim Van Sebroeck committed May 30, 2012
1 parent e907df3 commit fb55140
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 316 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/sch5627.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static int __devinit sch5627_probe(struct platform_device *pdev)
}

/* Note failing to register the watchdog is not a fatal error */
data->watchdog = sch56xx_watchdog_register(data->addr,
data->watchdog = sch56xx_watchdog_register(&pdev->dev, data->addr,
(build_code << 24) | (build_id << 8) | hwmon_rev,
&data->update_lock, 1);

Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/sch5636.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static int __devinit sch5636_probe(struct platform_device *pdev)
}

/* Note failing to register the watchdog is not a fatal error */
data->watchdog = sch56xx_watchdog_register(data->addr,
data->watchdog = sch56xx_watchdog_register(&pdev->dev, data->addr,
(revision[0] << 8) | revision[1],
&data->update_lock, 0);

Expand Down
Loading

0 comments on commit fb55140

Please sign in to comment.