[PATCH] rtc subsystem: add capability checks
authorAlessandro Zummo <alessandro.zummo@towertech.it>
Sun, 25 Jun 2006 12:48:20 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:14 +0000 (10:01 -0700)
commit110d693d5898649da606cd6e5f6af4d7f70a405f
treea46b06a383d8a9eda59d7c7e17e8694798769800
parent56f10c634e145d75e45b56a73f59fb6dff1caa8e
[PATCH] rtc subsystem: add capability checks

Centralize CAP_SYS_XXX checks to avoid duplicate code and missing checks in
the drivers.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/rtc/class.c
drivers/rtc/rtc-dev.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-vr41xx.c
include/linux/rtc.h