summary refs log tree commit diff
path: root/drivers/edac/edac_pci.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-04-16 14:24:59 +0200
committerLee Jones <lee.jones@linaro.org>2019-05-14 08:13:27 +0100
commit8ca6ff16de55085e600c75afc946862a46472127 (patch)
tree8a1a60f6a4d7e79e5c22ea854b6f93ae4e7e44cd /drivers/edac/edac_pci.c
parentdad06532292d77f37fbe831a02948a593500f682 (diff)
downloadlinux-8ca6ff16de55085e600c75afc946862a46472127.tar.gz
mfd: sun6i-prcm: Fix build warning for non-OF configurations
When CONFIG_OF is disabled, we get a harmless warning about an
unused variable:

drivers/mfd/sun6i-prcm.c: In function 'sun6i_prcm_probe':
drivers/mfd/sun6i-prcm.c:151:22: error: unused variable 'np' [-Werror=unused-variable]

Remove the variable and open-code the value in the only place
it is used, so it can get left out as well without CONFIG_OF.

Fixes: a05a2e7998ab ("mfd: sun6i-prcm: Allow to compile with COMPILE_TEST")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/edac/edac_pci.c')
0 files changed, 0 insertions, 0 deletions