summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/riowd.c
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: Remove BKL from rio watchdog driverThomas Gleixner2009-11-021-3/+3
| | | | | | | | | | | | | | cycle_kernel_lock() was added with the BKL pushdown. The rio driver indeed needs that because riowd_device is initialized after misc_register(). So an open(), write/ioctl() which happens to get between misc_register returning and riowd_device initialization would dereference a NULL pointer. Move riowd_device initialization before misc_register() and get rid of cycle_kernel_lock(). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
* watchdog: Fix rio watchdog probe functionThomas Gleixner2009-10-141-1/+1
| | | | | | | | | | | | | After sucessfully registering the misc device the driver iounmaps the hardware registers and kfree's the device data structure. Ouch ! This was introduced with commit e42311d75 (riowatchdog: Convert to pure OF driver) and went unnoticed for more than a year :) Return success instead of dropping into the error cleanup code path. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
* [WATCHDOG] Fix io.h & uaccess.h includes.Wim Van Sebroeck2009-03-251-3/+2
| | | | | | | | | Fix following includes: * #include <asm/io.h> should be #include <linux/io.h> * #include <asm/uaccess.h> should be #include <linux/uaccess.h> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* [WATCHDOG] More coding-style and trivial clean-upWim Van Sebroeck2009-03-251-1/+2
| | | | | | | Some more cleaning-up of the watchdog drivers. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* [WATCHDOG] cpwd.c & riowd.c - unlocked_ioctlWim Van Sebroeck2009-03-251-8/+7
| | | | | | | Switch to unlocked_ioctl Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
* sparc: Annotate of_device_id arrays with const or __initdata.David S. Miller2008-08-311-1/+1
| | | | | | As suggested by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
* riowd: Distinguish between driver name and OF device node name.David S. Miller2008-08-291-5/+5
| | | | | | | Driver messages should print the driver name, rather than the OF device node name. Signed-off-by: David S. Miller <davem@davemloft.net>
* riowatchdog: Move under drivers/watchdogDavid S. Miller2008-08-291-0/+259
The config stuff was already in drivers/watchdog/Kconfig Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud