UBI: prepare attach and detach functions
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Dec 2007 18:33:20 +0000 (20:33 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:26 +0000 (17:08 +0300)
commita1f0fa8f0a3d385a1535eb2e39b4da185683347d
tree8a8d4a7b4b4ecc961f3af4a283511db010f66cf2
parentd1214a10b8a1caff16508e8b9c5158cba8c7dd0e
UBI: prepare attach and detach functions

Prepare the attach and detach functions to by used outside of
module initialization:

* detach function checks reference count before detaching
* it kills the background thread as well

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c
drivers/mtd/ubi/ubi.h
drivers/mtd/ubi/wl.c