]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
UBI: prepare attach and detach functions
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Dec 2007 18:33:20 +0000 (20:33 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:17 +0000 (19:15 +0200)
commitcdfa788acd134a35d3e5b73d1a76fca4033d8aa9
treeccc8cbf0bad80f569d9e3bbdc7cbf9c97556f155
parente73f4459d969bb266f03dd4cbe21bdba8cb2732c
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