From: Chris Brand Date: Wed, 3 Jul 2013 22:07:57 +0000 (-0700) Subject: drivers/rtc/interface.c: return -EBUSY, not -EACCES when device is busy X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0734e27f0befe9e88c2b5dad789b05b7bf86ce90;p=pandora-kernel.git 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 Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed