of: Disabling OF functions that use sysfs if CONFIG_SYSFS disabled
authorGaurav Minocha <gaurav.minocha.os@gmail.com>
Fri, 5 Sep 2014 16:56:13 +0000 (09:56 -0700)
committerGrant Likely <grant.likely@linaro.org>
Mon, 8 Sep 2014 14:57:25 +0000 (15:57 +0100)
commitef69d74035befbddd7c2b7e86120e49191107acc
tree0cd0423d97bbbd8941271c22555a85fb4a9a36b0
parent5f74d8b7b8546255db6af45b017e9cbb18aed609
of: Disabling OF functions that use sysfs if CONFIG_SYSFS disabled

This patch is to the fix the recent runtime bug in kernel reported by
<fengguang.wu@intel.com>. The bug was exposed by commit b951f9dc,
"Enabling OF selftest to run without machine's devicetree" and is
exposed when CONFIG_OF_SELFTEST is enabled and CONFIG_SYSFS is
disabled.

Mail Subject: [OF test] BUG: unable to handle kernel NULL pointer
dereference at 00000038

Tested on x86 and arm architecture

Signed-off-by: Gaurav Minocha <gaurav.minocha.os@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c
drivers/of/dynamic.c