diff options
author | Matteo Croce <matteo@openwrt.org> | 2007-09-12 13:21:02 +0000 |
---|---|---|
committer | Matteo Croce <matteo@openwrt.org> | 2007-09-12 13:21:02 +0000 |
commit | cb6ff629c0eb204e3a3d1b2408c42c86afc6dcc6 (patch) | |
tree | bc076faa2748e090a4914b76a4705b28b6cb8afc /target | |
parent | 6c126cc6c972ae382f8fcd180db6b2e5cb0f0591 (diff) | |
download | upstream-cb6ff629c0eb204e3a3d1b2408c42c86afc6dcc6.tar.gz upstream-cb6ff629c0eb204e3a3d1b2408c42c86afc6dcc6.tar.bz2 upstream-cb6ff629c0eb204e3a3d1b2408c42c86afc6dcc6.zip |
Style fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8761 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c index 04c2e2e94b..a1bbad0365 100644 --- a/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c +++ b/target/linux/ar7/files/drivers/char/watchdog/ar7_wdt.c @@ -59,7 +59,7 @@ struct ar7_wdt { u32 kick_lock; u32 kick; u32 change_lock; - u32 change ; + u32 change; u32 disable_lock; u32 disable; u32 prescale_lock; @@ -186,13 +186,13 @@ static int ar7_wdt_open(struct inode *inode, struct file *file) static int ar7_wdt_release(struct inode *inode, struct file *file) { - if (!expect_close) { + if (!expect_close) printk(KERN_WARNING DRVNAME ": watchdog device closed unexpectedly," "will not disable the watchdog timer\n"); - } else if (!nowayout) { + else if (!nowayout) ar7_wdt_disable_wdt(); - } + up(&open_semaphore); return 0; @@ -280,24 +280,24 @@ static int ar7_wdt_ioctl(struct inode *inode, struct file *file, } static struct file_operations ar7_wdt_fops = { - .owner = THIS_MODULE, - .write = ar7_wdt_write, - .ioctl = ar7_wdt_ioctl, - .open = ar7_wdt_open, - .release = ar7_wdt_release, + .owner = THIS_MODULE, + .write = ar7_wdt_write, + .ioctl = ar7_wdt_ioctl, + .open = ar7_wdt_open, + .release = ar7_wdt_release, }; static struct miscdevice ar7_wdt_miscdev = { - .minor = WATCHDOG_MINOR, - .name = "watchdog", - .fops = &ar7_wdt_fops, + .minor = WATCHDOG_MINOR, + .name = "watchdog", + .fops = &ar7_wdt_fops, }; static int __init ar7_wdt_init(void) { int rc; - ar7_wdt_get_regs(); + ar7_wdt_get_regs(); if (!request_mem_region(ar7_regs_wdt, sizeof(struct ar7_wdt), LONGNAME)) { |