diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-09-01 10:50:37 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-09-01 10:50:37 +1000 |
commit | c6ce12828f9146f12d0654241bcb39523c257c90 (patch) | |
tree | 9b02c035946f4f7f13329b081376ec75c6a04a49 /block | |
parent | 326ba5010a5429a5a528b268b36a5900d4ab0eba (diff) |
driver model: constify attribute groups
Let attribute group vectors be declared "const". We'd
like to let most attribute metadata live in read-only
sections... this is a start.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index f4c64c2b303a..bc75f9cbc273 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -901,7 +901,7 @@ static struct attribute_group disk_attr_group = { .attrs = disk_attrs, }; -static struct attribute_group *disk_attr_groups[] = { +static const struct attribute_group *disk_attr_groups[] = { &disk_attr_group, NULL }; |