From 201fce21a67d74e9703127af0d6c6084003796bb Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 10 Jul 2009 17:02:17 +0300 Subject: [PATCH] mtd: blkdevs: do not for get to get MTD devices Nowadays MTD devices have to be "get" before they can be used. This has to be done with 'put_mtd_device()'. The 'blktrans_open()' function did not do this and instead used 'try_module_get()'. Fixe this. Since 'put_mtd_device()' already gets the module, extra 'try_module_get()' is not needed. This fixes oops when one tries to use mtdbloc on tope of gluebi. Reported-by: Holger Brunck Signed-off-by: Artem Bityutskiy --- Reading git-format-patch failed