9
0
Fork 0

ramfs: add missing remove function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-06-10 21:09:45 +02:00
parent ae302919c6
commit 4adfb9cf54
1 changed files with 6 additions and 0 deletions

View File

@ -537,6 +537,11 @@ static int ramfs_probe(struct device_d *dev)
return 0;
}
static void ramfs_remove(struct device_d *dev)
{
free(dev->priv);
}
static struct fs_driver_d ramfs_driver = {
.type = FS_TYPE_RAMFS,
.create = ramfs_create,
@ -557,6 +562,7 @@ static struct fs_driver_d ramfs_driver = {
.drv = {
.type = DEVICE_TYPE_FS,
.probe = ramfs_probe,
.remove = ramfs_remove,
.name = "ramfs",
.type_data = &ramfs_driver,
}