login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
3
Re: AT91SAM9/CAP9 watchdog driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Andrew Morton <akpm@...>
To: Andrew Victor <avictor.za@...>
Cc: <wim@...>, <linux-arm-kernel@...>, <linux-kernel@...>
Subject:
Re: AT91SAM9/CAP9 watchdog driver
Date: Tuesday, June 3, 2008 - 5:23 pm
On Sun, 1 Jun 2008 18:40:46 +0200 "Andrew Victor" <avictor.za@gmail.com> wrote:
quoted text
> +static int __init at91wdt_probe(struct platform_device *pdev) > +{ > + int res; > + > + if (at91wdt_miscdev.parent) > + return -EBUSY; > + at91wdt_miscdev.parent = &pdev->dev; > + > + res = misc_register(&at91wdt_miscdev); > + if (res) > + return res; > + > + /* Set watchdog */ > + if (at91_wdt_settimeout(wdt_timeout) == -EINVAL) { > + pr_info("at91sam9_wdt: timeout must be between 1 and %d.\n", > + WDT_MAX_TIME);
Would printk(KERN_ERR be more appropriate here?
quoted text
> + return 0;
That looks like the wrong return value?
quoted text
> + } > + > + return 0; > +}
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
AT91SAM9/CAP9 watchdog driver
, Andrew Victor
, (Sun Jun 1, 12:40 pm)
Re: AT91SAM9/CAP9 watchdog driver
, David Brownell
, (Sat Jun 7, 2:39 am)
Re: AT91SAM9/CAP9 watchdog driver
, Andrew Morton
, (Tue Jun 3, 5:23 pm)
Re: AT91SAM9/CAP9 watchdog driver
, Andrew Victor
, (Wed Jun 4, 3:31 am)
Re: AT91SAM9/CAP9 watchdog driver
, Alan Cox
, (Wed Jun 4, 7:36 am)
Re: AT91SAM9/CAP9 watchdog driver
, Andrew Victor
, (Wed Jun 4, 2:36 pm)
Re: AT91SAM9/CAP9 watchdog driver
, Alan Cox
, (Wed Jun 4, 2:24 pm)
Re: AT91SAM9/CAP9 watchdog driver
, Andrew Victor
, (Wed Jun 4, 3:02 pm)
Re: AT91SAM9/CAP9 watchdog driver
, Alan Cox
, (Wed Jun 4, 3:18 pm)
Re: AT91SAM9/CAP9 watchdog driver
, Alan Cox
, (Mon Jun 2, 2:58 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Nigel Cunningham
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Paul Mundt
Re: 2.6.22-rc4-mm2
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
git
:
linux-netdev
:
Arjan van de Ven
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
670 guests
online.
Online users
maheshdm
strcmp
Vince52
Syndicate