From: Ilya Yanok Date: Mon, 12 Dec 2011 23:37:56 +0000 (+0100) Subject: mtd: plat_ram: call mtd_device_register only if partition data exists X-Git-Tag: v3.2-rc7~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c32987918efaa6949c5b2f3e43b654a742b18f7d;p=pandora-kernel.git mtd: plat_ram: call mtd_device_register only if partition data exists mtd_device_parse_register() registers the device as a whole if no partition data is passed so there is no reason to call mtd_device_register() after that. Signed-off-by: Ilya Yanok Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed