Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
473c7105
Commit
473c7105
authored
Oct 15, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver model: make driverfs an implicit initcall.
parent
65d20c54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
drivers/base/core.c
drivers/base/core.c
+0
-12
fs/driverfs/inode.c
fs/driverfs/inode.c
+3
-1
include/linux/driverfs_fs.h
include/linux/driverfs_fs.h
+0
-2
No files found.
drivers/base/core.c
View file @
473c7105
...
@@ -318,18 +318,6 @@ void device_unregister(struct device * dev)
...
@@ -318,18 +318,6 @@ void device_unregister(struct device * dev)
put_device
(
dev
);
put_device
(
dev
);
}
}
static
int
__init
device_init
(
void
)
{
int
error
;
error
=
init_driverfs_fs
();
if
(
error
)
panic
(
"DEV: could not initialize driverfs"
);
return
0
;
}
core_initcall
(
device_init
);
EXPORT_SYMBOL
(
device_register
);
EXPORT_SYMBOL
(
device_register
);
EXPORT_SYMBOL
(
device_unregister
);
EXPORT_SYMBOL
(
device_unregister
);
EXPORT_SYMBOL
(
get_device
);
EXPORT_SYMBOL
(
get_device
);
...
...
fs/driverfs/inode.c
View file @
473c7105
...
@@ -509,11 +509,13 @@ static void put_mount(void)
...
@@ -509,11 +509,13 @@ static void put_mount(void)
DBG
(
"driverfs: mount_count = %d
\n
"
,
mount_count
);
DBG
(
"driverfs: mount_count = %d
\n
"
,
mount_count
);
}
}
int
__init
init_driverfs_fs
(
void
)
static
int
__init
driverfs_init
(
void
)
{
{
return
register_filesystem
(
&
driverfs_fs_type
);
return
register_filesystem
(
&
driverfs_fs_type
);
}
}
core_initcall
(
driverfs_init
);
static
struct
dentry
*
get_dentry
(
struct
dentry
*
parent
,
const
char
*
name
)
static
struct
dentry
*
get_dentry
(
struct
dentry
*
parent
,
const
char
*
name
)
{
{
struct
qstr
qstr
;
struct
qstr
qstr
;
...
...
include/linux/driverfs_fs.h
View file @
473c7105
...
@@ -65,6 +65,4 @@ driverfs_create_symlink(struct driver_dir_entry * parent,
...
@@ -65,6 +65,4 @@ driverfs_create_symlink(struct driver_dir_entry * parent,
extern
void
extern
void
driverfs_remove_file
(
struct
driver_dir_entry
*
,
const
char
*
name
);
driverfs_remove_file
(
struct
driver_dir_entry
*
,
const
char
*
name
);
extern
int
init_driverfs_fs
(
void
);
#endif
/* _DDFS_H_ */
#endif
/* _DDFS_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment