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)
commitd708b384c06dddeb35d46a6127c08a7403fa2faf
treeb64b0b9f614ed7432a03c1bb6e6b0b6820cede8d
parent46e7a4e18397649fe1b9007ad99707d960eb138e
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