Messages in this thread | | | Date | Wed, 4 Jun 2008 12:36:42 +0100 | From | Alan Cox <> | Subject | Re: AT91SAM9/CAP9 watchdog driver |
| |
On Wed, 4 Jun 2008 09:31:50 +0200 "Andrew Victor" <avictor.za@gmail.com> wrote:
> hi Andrew, > > >> + return 0; > > > > That looks like the wrong return value? > > Since the watchdog registers are Write-Once, if the user does not > specify a "wdt_timeout" parameter we'd still like the driver to load > even if it's not enabled.
Surely you can avoid doing the register writes until after you check the validity of arguments ?
| |