diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2002-07-30 07:46:34 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-07-30 07:46:34 -0700 |
| commit | ea9f40066eb2d7fd1aaa90163fa363fee265da1a (patch) | |
| tree | ae352ce5d89919b0a8c8da3c08e4e30bf3850129 /fs/devfs | |
| parent | 05535aec54eeb687feedbc5507bd502932724be5 (diff) | |
Remove the devfs_should* functions I added, and replace them with one devfs_only() call
This now explains what is really going on much better than before.
Diffstat (limited to 'fs/devfs')
| -rw-r--r-- | fs/devfs/base.c | 50 |
1 files changed, 4 insertions, 46 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c index 90d8bf08d72e..7731d36ef133 100644 --- a/fs/devfs/base.c +++ b/fs/devfs/base.c @@ -2228,61 +2228,19 @@ const char *devfs_get_name (devfs_handle_t de, unsigned int *namelen) /** - * devfs_should_register_chrdev - should we register a conventional character driver. + * devfs_only - returns if "devfs=only" is a boot option * - * If "devfs=only" this function will return -1, otherwise 0 is returned. + * If "devfs=only" this function will return 1, otherwise 0 is returned. */ -int devfs_should_register_chrdev (void) +int devfs_only (void) { if (boot_options & OPTION_ONLY) - return -1; + return 1; return 0; } /** - * devfs_should_register_blkdev - should we register a conventional block driver. - * - * If the "devfs=only" option was provided at boot time, this function will - * return -1, otherwise 0 is returned. - */ - -int devfs_should_register_blkdev (void) -{ - if (boot_options & OPTION_ONLY) - return -1; - return 0; -} - - -/** - * devfs_should_unregister_chrdev - should we unregister a conventional character driver. - * - * If "devfs=only" this function will return -1, otherwise 0 is returned - */ -int devfs_should_unregister_chrdev (void) -{ - if (boot_options & OPTION_ONLY) - return -1; - return 0; -} - - -/** - * devfs_should_unregister_blkdev - should we unregister a conventional block driver. - * - * If the "devfs=only" option was provided at boot time, this function will - * return -1, otherwise 0 is returned. - */ - -int devfs_should_unregister_blkdev (void) -{ - if (boot_options & OPTION_ONLY) - return -1; - return 0; -} - -/** * devfs_setup - Process kernel boot options. * @str: The boot options after the "devfs=". */ |
