From: Wenlin Kang Date: Thu, 21 May 2015 06:49:38 +0000 (+0800) Subject: mtd: blktrans: change blktrans_getgeo return value X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50183936254b;p=pandora-kernel.git mtd: blktrans: change blktrans_getgeo return value Modify function blktrans_getgeo()'s return value to -EOPNOTSUPP when dev->tr->getgeo == NULL. We shouldn't make the return value to 0 when dev->tr->getgeo == NULL, because the function blktrans_getgeo() has an output value "hd_geometry" which is usually used by some application, if returns 0 (i.e., "success"), it will make some application get the wrong information. Signed-off-by: Wenlin Kang Signed-off-by: Brian Norris --- Reading git-diff-tree failed