From: Brian Norris Date: Thu, 21 May 2015 17:44:32 +0000 (-0700) Subject: mtd: blktrans: use better error code for unimplemented ioctl() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a3f13c2ab997617eaf7020af33b057a68285fd;p=pandora-kernel.git mtd: blktrans: use better error code for unimplemented ioctl() In commit 50183936254b ("mtd: blktrans: change blktrans_getgeo return value") we fixed the problem that ioctl(HDIO_GETGEO) might return 0 (success) for mtdblock devices which did not implement the feature and would leave a blank (zero) result. But now, let's get the error code right. Other code paths on this ioctl tend to use -ENOTTY to notify the user that the ioctl() is not supported for the device, so let's use that instead of -EOPNOTSUPP. Suggested-by: Richard Weinberger Signed-off-by: Brian Norris --- Reading git-diff-tree failed