diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-26 15:25:05 -0400 |
commit | bdaf8529385d5126ef791e8f1914afff8cd59bcf (patch) | |
tree | aa9e917703526ad034a19cf1b16002aba486cd17 /init/do_mounts.h | |
parent | a29641883f57f36424e3219ae9ff48dd6cd34de0 (diff) |
[PATCH] devfs: Remove devfs from the init code
This patch removes the devfs code from the init/ directory.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init/do_mounts.h')
-rw-r--r-- | init/do_mounts.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/init/do_mounts.h b/init/do_mounts.h index e0a7ac9649e1..66548efe4c3c 100644 --- a/init/do_mounts.h +++ b/init/do_mounts.h | |||
@@ -15,25 +15,12 @@ void mount_root(void); | |||
15 | extern int root_mountflags; | 15 | extern int root_mountflags; |
16 | extern char *root_device_name; | 16 | extern char *root_device_name; |
17 | 17 | ||
18 | #ifdef CONFIG_DEVFS_FS | 18 | static inline int create_dev(char *name, dev_t dev) |
19 | |||
20 | void mount_devfs(void); | ||
21 | void umount_devfs(char *path); | ||
22 | int create_dev(char *name, dev_t dev, char *devfs_name); | ||
23 | |||
24 | #else | ||
25 | |||
26 | static inline void mount_devfs(void) {} | ||
27 | static inline void umount_devfs(const char *path) {} | ||
28 | |||
29 | static inline int create_dev(char *name, dev_t dev, char *devfs_name) | ||
30 | { | 19 | { |
31 | sys_unlink(name); | 20 | sys_unlink(name); |
32 | return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); | 21 | return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); |
33 | } | 22 | } |
34 | 23 | ||
35 | #endif | ||
36 | |||
37 | #if BITS_PER_LONG == 32 | 24 | #if BITS_PER_LONG == 32 |
38 | static inline u32 bstat(char *name) | 25 | static inline u32 bstat(char *name) |
39 | { | 26 | { |