diff options
author | Jan Beulich <JBeulich@novell.com> | 2011-01-03 10:07:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-03 14:48:11 -0500 |
commit | a1cf11d8f673a3ad91012c5da96beed06ecefde1 (patch) | |
tree | e729bb79ce66f2983d5d4b9afcf8d9a4c365c1c3 /init | |
parent | b518a64983cbf2ff31aed530898de2d80e4573d5 (diff) |
name_to_dev_t() must not call __init code
The function can't be __init itself (being called from some sysfs
handler), and hence none of the functions it calls can be either.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/do_mounts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 830aaec9c7d..2b54bef33b5 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
@@ -93,7 +93,7 @@ no_match: | |||
93 | * | 93 | * |
94 | * Returns the matching dev_t on success or 0 on failure. | 94 | * Returns the matching dev_t on success or 0 on failure. |
95 | */ | 95 | */ |
96 | static dev_t __init devt_from_partuuid(char *uuid_str) | 96 | static dev_t devt_from_partuuid(char *uuid_str) |
97 | { | 97 | { |
98 | dev_t res = 0; | 98 | dev_t res = 0; |
99 | struct device *dev = NULL; | 99 | struct device *dev = NULL; |