diff options
| author | Alessandro Zummo <[email protected]> | 2006-06-25 12:48:20 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-25 17:01:14 +0000 |
| commit | 110d693d5898649da606cd6e5f6af4d7f70a405f (patch) | |
| tree | a46b06a383d8a9eda59d7c7e17e8694798769800 /drivers/rtc/class.c | |
| parent | [PATCH] rtc subsystem, fix capability checks in kernel interface (diff) | |
| download | kernel-110d693d5898649da606cd6e5f6af4d7f70a405f.tar.gz kernel-110d693d5898649da606cd6e5f6af4d7f70a405f.zip | |
[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 <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Yoichi Yuasa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/class.c')
| -rw-r--r-- | drivers/rtc/class.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 413c7d54ea10..5396beec30d0 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -69,6 +69,7 @@ struct rtc_device *rtc_device_register(const char *name, struct device *dev, rtc->id = id; rtc->ops = ops; rtc->owner = owner; + rtc->max_user_freq = 64; rtc->class_dev.dev = dev; rtc->class_dev.class = rtc_class; rtc->class_dev.release = rtc_device_release; |
