]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: don't create OPAL msglog sysfs entry if memcons init fails
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Thu, 18 Feb 2016 01:12:54 +0000 (12:12 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Feb 2016 09:31:55 +0000 (20:31 +1100)
commit469f5f773806515ab5905a7a99143015270d47b8
tree097473ba60e866e7e92b78651fbe32f3869aed52
parent95e3205d572592ed7418bf3a876d4d6e16eb3a21
powerpc/powernv: don't create OPAL msglog sysfs entry if memcons init fails

When initialising OPAL interfaces, there is a possibility that
opal_msglog_init() may fail to initialise the msglog/memory console.

Fix opal_msglog_sysfs_init() so it doesn't try to create sysfs entry for
the msglog if this occurs.

Suggested-by: Joel Stanley <joel@jms.id.au>
Fixes: c950c63f87f4 ("powerpc/powernv: new function to access OPAL msglog")
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-msglog.c