[PATCH] watchdog: add davinci watchdog driver
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 1 05:10:18 PDT 2015
On Sat, May 30, 2015 at 03:03:41PM +0200, Jan Luebbe wrote:
> This driver is based on the Linux driver (v4.0).
>
> Signed-off-by: Jan Luebbe <jluebbe at debian.org>
> ---
> drivers/watchdog/Kconfig | 6 ++
> drivers/watchdog/Makefile | 1 +
> drivers/watchdog/davinci_wdt.c | 172 +++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 179 insertions(+)
> create mode 100644 drivers/watchdog/davinci_wdt.c
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 7f7b02e..582c615 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> +
> +static int davinci_wdt_probe(struct device_d *dev)
> +{
> + int ret = 0;
> + struct davinci_wdt *davinci_wdt;
> +
> + davinci_wdt = xzalloc(sizeof(*davinci_wdt));
> +
> + davinci_wdt->base = dev_request_mem_region(dev, 0);
> + if (!davinci_wdt->base)
> + return -ENODEV;
dev_request_mem_region returns as ERR_PTR.
Sascha
--
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 |
More information about the barebox
mailing list