diff options
author | Chris Brand <chris.brand@broadcom.com> | 2013-07-04 00:07:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 01:08:00 +0200 |
commit | 0734e27f0befe9e88c2b5dad789b05b7bf86ce90 (patch) | |
tree | 2fc9329ef599d4b91dd8d05fd58d3f66f2106fd4 /drivers/rtc/rtc-pcf2123.c | |
parent | drivers/rtc/rtc-twl.c: cleanup with module_platform_driver() conversion (diff) | |
download | linux-0734e27f0befe9e88c2b5dad789b05b7bf86ce90.tar.xz linux-0734e27f0befe9e88c2b5dad789b05b7bf86ce90.zip |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-pcf2123.c')
0 files changed, 0 insertions, 0 deletions