ubi: Fix early logging
authorRichard Weinberger <richard@nod.at>
Mon, 4 Jul 2016 20:06:51 +0000 (22:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:25 +0000 (18:09 +0200)
commit79d6bc128c0b3370acbfedf7da44e64678c25c27
tree7f7b6587ba479784fe517c59efec15d462382dca
parent752aaae53df7cf134f02285505174a74a2215e3e
ubi: Fix early logging

commit bc743f34dfa011e62edd0ea4ae8455be06c083b5 upstream.

We cannot use ubi_* logging functions before the UBI
object is initialized.

Fixes: 3260870331 ("UBI: Extend UBI layer debug/messaging capabilities")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/build.c