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)
commitff268b56ce8c86be920e1e6a15d68b168bed66c9
tree2556c2994985836f26b3fccbbc063052a6481c71
parentb787f68c36d49bb1d9236f403813641efa74a031
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
This page took 0.042336 seconds and 5 git commands to generate.