bcm2835_wdt.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) | bcm2835_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782) |
---|---|
1/* 2 * Watchdog driver for Broadcom BCM2835 3 * 4 * "bcm2708_wdog" driver written by Luke Diamand that was obtained from 5 * branch "rpi-3.6.y" of git://github.com/raspberrypi/linux.git was used 6 * as a hardware reference for the Broadcom BCM2835 watchdog timer. 7 * 8 * Copyright (C) 2013 Lubomir Rintel <lkundrak@v3.sk> --- 168 unchanged lines hidden (view full) --- 177 if (!wdt->base) { 178 dev_err(dev, "Failed to remap watchdog regs"); 179 return -ENODEV; 180 } 181 182 watchdog_set_drvdata(&bcm2835_wdt_wdd, wdt); 183 watchdog_init_timeout(&bcm2835_wdt_wdd, heartbeat, dev); 184 watchdog_set_nowayout(&bcm2835_wdt_wdd, nowayout); | 1/* 2 * Watchdog driver for Broadcom BCM2835 3 * 4 * "bcm2708_wdog" driver written by Luke Diamand that was obtained from 5 * branch "rpi-3.6.y" of git://github.com/raspberrypi/linux.git was used 6 * as a hardware reference for the Broadcom BCM2835 watchdog timer. 7 * 8 * Copyright (C) 2013 Lubomir Rintel <lkundrak@v3.sk> --- 168 unchanged lines hidden (view full) --- 177 if (!wdt->base) { 178 dev_err(dev, "Failed to remap watchdog regs"); 179 return -ENODEV; 180 } 181 182 watchdog_set_drvdata(&bcm2835_wdt_wdd, wdt); 183 watchdog_init_timeout(&bcm2835_wdt_wdd, heartbeat, dev); 184 watchdog_set_nowayout(&bcm2835_wdt_wdd, nowayout); |
185 bcm2835_wdt_wdd.parent = &pdev->dev; |
|
185 err = watchdog_register_device(&bcm2835_wdt_wdd); 186 if (err) { 187 dev_err(dev, "Failed to register watchdog device"); 188 iounmap(wdt->base); 189 return err; 190 } 191 192 wdt->restart_handler.notifier_call = bcm2835_restart; --- 54 unchanged lines hidden --- | 186 err = watchdog_register_device(&bcm2835_wdt_wdd); 187 if (err) { 188 dev_err(dev, "Failed to register watchdog device"); 189 iounmap(wdt->base); 190 return err; 191 } 192 193 wdt->restart_handler.notifier_call = bcm2835_restart; --- 54 unchanged lines hidden --- |