]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/interface.c: return -EBUSY, not -EACCES when device is busy
authorChris Brand <chris.brand@broadcom.com>
Thu, 27 Jun 2013 23:53:42 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:50 +0000 (16:38 +1000)
commit9f4ecf55703266c3ec442abaff4a10a63a370073
tree8d47863f5d8dc43a0c1eb45b551a5dd16fad567d
parentf4544878096f6f17daa4296c91ba03a9256ba9f1
drivers/rtc/interface.c: return -EBUSY, not -EACCES when device is busy

If rtc->irq_task is non-NULL and task is NULL, they always
rtc_irq_set_freq(), whenever err is set to -EBUSY it will then immediately
be set to -EACCES, misleading the caller as to the underlying problem.

Signed-off-by: Chris Brand <chris.brand@broadcom.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/interface.c