Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355780
b: refs/heads/master
c: 19c7c0d
h: refs/heads/master
v: v3
  • Loading branch information
Kumar, Anil authored and Sekhar Nori committed Feb 9, 2013
1 parent 6ee2052 commit 55f7737
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 518f97dbb8d047f54c9f9f9b970fb42e1a6c8184
refs/heads/master: 19c7c0d81a9b1fe7342d0208b629b5e085e4f3ae
12 changes: 10 additions & 2 deletions trunk/arch/arm/mach-davinci/devices-da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ static struct resource da8xx_watchdog_resources[] = {
},
};

struct platform_device da8xx_wdt_device = {
static struct platform_device da8xx_wdt_device = {
.name = "watchdog",
.id = -1,
.num_resources = ARRAY_SIZE(da8xx_watchdog_resources),
Expand All @@ -368,7 +368,15 @@ struct platform_device da8xx_wdt_device = {

void da8xx_restart(char mode, const char *cmd)
{
davinci_watchdog_reset(&da8xx_wdt_device);
struct device *dev;

dev = bus_find_device_by_name(&platform_bus_type, NULL, "watchdog");
if (!dev) {
pr_err("%s: failed to find watchdog device\n", __func__);
return;
}

davinci_watchdog_reset(to_platform_device(dev));
}

int __init da8xx_register_watchdog(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-davinci/include/mach/da8xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ extern struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata;
extern struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata;
extern struct davinci_spi_platform_data da8xx_spi_pdata[];

extern struct platform_device da8xx_wdt_device;

extern const short da830_emif25_pins[];
extern const short da830_spi0_pins[];
Expand Down

0 comments on commit 55f7737

Please sign in to comment.