diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-09-03 22:06:43 +0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-09-08 18:57:24 +0400 |
commit | 5f74d8b7b8546255db6af45b017e9cbb18aed609 (patch) | |
tree | f1dd714d88d5c668c0f38a97d6bf297ac55581f2 /drivers/of/dynamic.c | |
parent | 2ce7598c9a453e0acd0e07be7be3f5eb39608ebd (diff) | |
download | linux-5f74d8b7b8546255db6af45b017e9cbb18aed609.tar.xz |
of: correct of_console_check()'s return value
The comments above of_console_check() say that it will return TRUE if it
registers a preferred console, but add_preferred_console() uses a
0-equals-success convention, so this leaves of_console_check() with an
inconsistent policy for its return values.
Fortunately, nobody was actually checking the return value of
of_console_check(), so this isn't significant at the moment.
But let's match the comments, so we're doing what we say.
Fixes: 3482f2c52b77 ('of: Create of_console_check() for selecting a console specified in /chosen')
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/dynamic.c')
0 files changed, 0 insertions, 0 deletions