From: Artem Bityutskiy Date: Wed, 28 Dec 2011 15:08:03 +0000 (+0200) Subject: romfs: do not use mtd->get_unmapped_area directly X-Git-Tag: v3.3-rc1~119^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4991e7251ed951a5f33faf25912e9db416306309;p=pandora-kernel.git romfs: do not use mtd->get_unmapped_area directly Remove direct usage of mtd->get_unmapped_area. Instead, just call 'mtd_get_unmapped_area()' which will return -EOPNOTSUPP if the function is not implemented, and then test for this code. We also translate -EOPNOTSUPP to -ENOSYS because this return code is probably part of the kernel ABI which we do not want to break. Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed