On Fri, Oct 14, 2016 at 11:27:14AM +0200, Steffen Trumtrar wrote: > Port the linux v4.8-rc1 Synopsys DesignWare watchdog driver to barebox. > > Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> > --- > Changes since v1: > - change usages of pr_warn in favor of dev_warn > > drivers/watchdog/Kconfig | 6 ++ > drivers/watchdog/Makefile | 1 + > drivers/watchdog/dw_wdt.c | 193 ++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 200 insertions(+) > create mode 100644 drivers/watchdog/dw_wdt.c > (...) > +struct dw_wdt { > + void __iomem *regs; > + struct clk *clk; > + struct restart_handler restart; > + struct watchdog wdd; > + struct reset_control *rst; > +}; > + (...) > +static int dw_wdt_stop(struct watchdog *wdd) > +{ > + struct dw_wdt *dw_wdt = to_dw_wdt(wdd); > + > + if (IS_ERR(dw_wdt->rst)) { > + dev_warn(dw_wdt->dev, "No reset line. Will not stop.\n"); ^^^^^^^^^^^ Meh, I sent the wrong version :-( Let's try again. Regards, Steffen -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox