mtd: bcm47xxpart: only register partitions if the trx header was filled
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Sep 2014 22:33:13 +0000 (00:33 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 22 Oct 2014 09:04:34 +0000 (02:04 -0700)
commita1ff7d64c5361c15bac653708a679de13506d283
tree33ee6b22a0ef3fcac28052378adf9116746234ea
parentb85b8d92c1d720a5b2229aa1bad9bd77f09b8ec5
mtd: bcm47xxpart: only register partitions if the trx header was filled

Sometimes the trx offsets are 0, in that case there is no partition and
we should not try to add one.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
[Brian: rewrapped]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/bcm47xxpart.c