]> git.baikalelectronics.ru Git - kernel.git/commit
reset: use ENOTSUPP instead of ENOSYS
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 29 Oct 2015 08:55:00 +0000 (09:55 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 16 Nov 2015 08:23:47 +0000 (09:23 +0100)
commit0b777c17f4bd88aea7b96b16b4eafc77ecbbf8b2
treee92f8d26dfcaf88b09d75672939d7d38344c4339
parentecfb56d31a21ef9c7dfbf12347eac8159d3bf0a0
reset: use ENOTSUPP instead of ENOSYS

ENOSYS is reserved to report invalid syscalls to userspace.
Consistently return ENOTSUPP to indicate that the driver doesn't support
the functionality or the reset framework is not enabled at all.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h