summaryrefslogtreecommitdiffstats
path: root/fs/ramfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ramfs.c')
-rw-r--r--fs/ramfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 6d675df195..9aad4f6b0a 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -560,7 +560,6 @@ static struct fs_driver_d ramfs_driver = {
.stat = ramfs_stat,
.flags = FS_DRIVER_NO_DEV,
.drv = {
- .type = DEVICE_TYPE_FS,
.probe = ramfs_probe,
.remove = ramfs_remove,
.name = "ramfs",
@@ -570,7 +569,7 @@ static struct fs_driver_d ramfs_driver = {
static int ramfs_init(void)
{
- return register_driver(&ramfs_driver.drv);
+ return register_fs_driver(&ramfs_driver);
}
device_initcall(ramfs_init);