]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: -ENOSYS is applicable only to syscalls
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 27 Apr 2016 03:22:21 +0000 (08:52 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 28 Apr 2016 13:18:18 +0000 (15:18 +0200)
commit67d08a6a9b6e65dabba55d393a8dbbd6856f4f8c
treeb64b0b9f614ed7432a03c1bb6e6b0b6820cede8d
parentd4c77f089b8874a20c6ba4a3b7bb3298a9ce02d0
PM / OPP: -ENOSYS is applicable only to syscalls

Some of the routines have used -ENOSYS for the cases where the
functionality isn't implemented in the kernel. But ENOSYS is supposed to
be used only for syscalls.

Replace that with -ENOTSUPP, which specifically means that the operation
isn't supported.

While at it, replace exiting -EINVAL errors for similar cases to
-ENOTSUPP.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/pm_opp.h