[PATCH v5] watchdog: Add DA9063 PMIC watchdog driver.

Opensource [Steve Twiss] stwiss.opensource at diasemi.com
Tue Aug 26 08:21:53 PDT 2014


On 26 August 2014 07:26, Markus Pargmann wrote

> Subject: [PATCH v5] watchdog: Add DA9063 PMIC watchdog driver.
> 

[...]

> +
> +static int da9063_wdt_stop(struct watchdog_device *wdd)
> +{
> +	struct da9063_watchdog *wdt = watchdog_get_drvdata(wdd);
> +	int ret;
> +
> +	mutex_lock(&wdt->lock);
> +	ret = regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D,
> +			DA9063_TWDSCALE_MASK,
> +			DA9063_TWDSCALE_DISABLE);
> +	if (ret)
> +		dev_alert(wdt->da9063->dev, "Watchdog failed to stop (err = %d)\n",
> +				ret);
> +	mutex_unlock(&wdt->lock);
> +
> +	return ret;
> +}
> +

Hi Markus,

A quick typo.
ret = regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D,
should probably be wdt->da9063->regmap

Regards,
Steve




More information about the linux-arm-kernel mailing list