diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-16 15:23:39 -0800 |
---|---|---|
committer | Satya Durga Srinivasu Prabhala <satyap@codeaurora.org> | 2016-08-11 18:12:37 -0700 |
commit | 848487ca0761032591567b24a757333d05b616d7 (patch) | |
tree | 0451b532c2ace85e4446c0d32f8b7875b21ec251 /drivers/rtc/rtc-isl12022.c | |
parent | 9d822a9489cceee0be66a722211426c544b04cdf (diff) |
earlycon: Use common framework for earlycon declarations
Use a single common table of struct earlycon_id for both command line
and devicetree. Re-define OF_EARLYCON_DECLARE() macro to instance a
unique earlycon declaration (the declaration is only guaranteed to be
unique within a compilation unit; separate compilation units must still
use unique earlycon names).
The semantics of OF_EARLYCON_DECLARE() is different; it declares an
earlycon which can matched either on the command line or by devicetree.
EARLYCON_DECLARE() is semantically unchanged; it declares an earlycon
which is matched by command line only. Remove redundant instances of
EARLYCON_DECLARE().
This enables all earlycons to properly initialize struct console
with the appropriate name and index, which improves diagnostics and
enables direct earlycon-to-console handoff.
CRs-Fixed: 1053499
Change-Id: I893ebd28a3e4e7afe8080bcc3e000970fe1fa36b
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 2eaa790989e03900298ad24f77f1086dbbc1aebd
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Diffstat (limited to 'drivers/rtc/rtc-isl12022.c')
0 files changed, 0 insertions, 0 deletions