UBI: gluebi: initialize ubi_num field
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 10 Jul 2009 13:59:36 +0000 (16:59 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 15 Jul 2009 08:30:55 +0000 (11:30 +0300)
commitc8cc452501572d4a81331179b00a9bdd5d2bfada
tree8db50707575afe3c36d35a2a5d07c05fe2d58e26
parent6847e154e3cd74fca6084124c097980a7634285a
UBI: gluebi: initialize ubi_num field

Do not forget to initialize 'gluebi->ubi_num' because otherwise
it will stay 0 even for ubi1 device, and gluebi will open
wrong UBI device when 'gluebi_get_device()' is called.

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