diff options
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-elog.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-elog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-elog.c b/arch/powerpc/platforms/powernv/opal-elog.c index bbdb3ffaab98..518fe95dbf24 100644 --- a/arch/powerpc/platforms/powernv/opal-elog.c +++ b/arch/powerpc/platforms/powernv/opal-elog.c | |||
@@ -295,6 +295,10 @@ int __init opal_elog_init(void) | |||
295 | { | 295 | { |
296 | int rc = 0; | 296 | int rc = 0; |
297 | 297 | ||
298 | /* ELOG not supported by firmware */ | ||
299 | if (!opal_check_token(OPAL_ELOG_READ)) | ||
300 | return -1; | ||
301 | |||
298 | elog_kset = kset_create_and_add("elog", NULL, opal_kobj); | 302 | elog_kset = kset_create_and_add("elog", NULL, opal_kobj); |
299 | if (!elog_kset) { | 303 | if (!elog_kset) { |
300 | pr_warn("%s: failed to create elog kset\n", __func__); | 304 | pr_warn("%s: failed to create elog kset\n", __func__); |