[PATCH] constify rtc_class_ops: update drivers
Update RTC framework so that drivers can constify their method tables, moving them from ".data" to ".rodata". Then update the drivers. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
db621f174d
commit
ff8371ac9a
@@ -386,7 +386,7 @@ static void s3c_rtc_release(struct device *dev)
|
||||
free_irq(s3c_rtc_tickno, rtc_dev);
|
||||
}
|
||||
|
||||
static struct rtc_class_ops s3c_rtcops = {
|
||||
static const struct rtc_class_ops s3c_rtcops = {
|
||||
.open = s3c_rtc_open,
|
||||
.release = s3c_rtc_release,
|
||||
.ioctl = s3c_rtc_ioctl,
|
||||
|
Reference in New Issue
Block a user