Brian Norris c4a3f13c2a 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 <richard@nod.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-05-21 10:44:32 -07:00
..
2015-03-30 18:01:04 -07:00
2015-05-18 10:50:43 -07:00
2015-05-06 22:52:22 +02:00
2014-04-14 11:23:01 -07:00
2015-02-18 08:01:44 -08:00
2015-05-07 00:18:22 -07:00
2014-08-19 11:53:08 -07:00
2014-03-10 22:42:25 -07:00
2014-08-19 11:53:07 -07:00