]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Don't spew backtraces on duplicate sysfs
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 2 Jun 2015 01:47:54 +0000 (18:47 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jun 2015 12:19:55 +0000 (13:19 +0100)
commitbbaacdc049420af630a6c479ecf15f143782718a
tree2556c2994985836f26b3fccbbc063052a6481c71
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
regulator: core: Don't spew backtraces on duplicate sysfs

We don't consider a failure to add the sysfs node as a problem,
so use sysfs_create_link_nowarn() so that we don't print a
backtrace when duplicated files exist. Also, downgrade the printk
message to a debug statement so that we're quiet here. This
allows multiple drivers to request a CPU's regulator so that
CPUfreq and AVSish drivers can coexist.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c