platform/chrome: cros_ec: Fix panic notifier registration
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 10 Jan 2023 22:10:33 +0000 (23:10 +0100)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 11 Jan 2023 03:27:56 +0000 (11:27 +0800)
commit9e69b1b27b13eb4eb85405900e290c0d539454bf
treefa037324faaa60f219f6103974d78d943b934ef7
parent441529bed41cd6f368fe337ebbb4920e3519da24
platform/chrome: cros_ec: Fix panic notifier registration

Initialize panic notifier to avoid the following lockdep warning:

INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
[...]
Hardware name: Samsung Exynos (Flattened Device Tree)
Workqueue: events_unbound async_run_entry_fn
 unwind_backtrace from show_stack
[...]
 blocking_notifier_chain_register from cros_ec_debugfs_probe
 cros_ec_debugfs_probe from platform_probe

Fixes: d90fa2c64d59 ("platform/chrome: cros_ec: Poll EC log on EC panic")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[tzungbi: trimmed the stack trace in commit message.]
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20230110221033.7441-1-m.szyprowski@samsung.com
drivers/platform/chrome/cros_ec.c