diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-14 23:07:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-17 10:27:15 +0100 |
commit | 9bf08d582a5016ed7c74bffe23901fa06ed27afa (patch) | |
tree | 0c2d16ad2b55b19d3a53624c71920f26a2f0ed5d /include | |
parent | 33b5ead7e63a8051805adf38b3c9728283e18f2b (diff) | |
download | barebox-9bf08d582a5016ed7c74bffe23901fa06ed27afa.tar.gz barebox-9bf08d582a5016ed7c74bffe23901fa06ed27afa.tar.xz |
fs: put fs devices on its own bus
By putting the fs devices/drivers on a bus on its own we can hook
into the bus remove function to cleanup the fs device. This way
we can unmount a device by simply unregistering the device which
is useful for for example USB mass storage devices. These can now
unregister the assoiated filesystems by unregistering their child
devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h index fcaef32e21..656160dd53 100644 --- a/include/fs.h +++ b/include/fs.h @@ -90,6 +90,7 @@ struct fs_device_d { struct fs_driver_d *driver; + struct cdev *cdev; struct mtab_entry mtab; }; |