From: Niklas Cassel Date: Sun, 1 Feb 2015 01:08:50 +0000 (+0100) Subject: mtd: avoid registering reboot notifier twice X-Git-Tag: fixes-v4.0-rc1~67^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1dd8641c8c36ff4aacf24c7e2575770e30afbe5;p=pandora-kernel.git mtd: avoid registering reboot notifier twice Calling mtd_device_parse_register with the same mtd_info (e.g. registering several partitions on a single device) would add the same reboot notifier twice, causing an infinte loop in notifier_chain_register during boot up. Signed-off-by: Niklas Cassel [Brian: add FIXME comments] Signed-off-by: Brian Norris Signed-off-by: Brian Norris --- Reading git-diff-tree failed