PNOR: Check if device formatted as UBI.

- Check if device is formatted as "UBI" before
  attempting to re-attach the pnor mtd device
  to ubi.
- This helps reduce the error logs that we get
  on systems that doesn't support UBI, such as
  barreleye.

Resolves openbmc/openbmc#2066

Change-Id: I21091644950aa245df655d0a871e0f203782932c
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
1 file changed