diff options
author | Peter Rosin <peda@axentia.se> | 2015-01-29 14:21:55 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-29 15:02:29 +0300 |
commit | 2599a9609c588d040c53e7eaed00e696effd28bf (patch) | |
tree | 163c4b1daf02e948f6935ff47f0b31a96b3e10f3 /sound/soc | |
parent | d11c2978bfbe97a4c29bd78b491c14f2debb36cd (diff) | |
download | linux-2599a9609c588d040c53e7eaed00e696effd28bf.tar.xz |
ASoC: pcm512x: Fixup warning splat
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/pcm512x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 51b279e3f465..067d11743c31 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc/codecs/pcm512x.c @@ -1266,7 +1266,6 @@ int pcm512x_probe(struct device *dev, struct regmap *regmap) { struct pcm512x_priv *pcm512x; int i, ret; - u32 val; pcm512x = devm_kzalloc(dev, sizeof(struct pcm512x_priv), GFP_KERNEL); if (!pcm512x) @@ -1347,6 +1346,7 @@ int pcm512x_probe(struct device *dev, struct regmap *regmap) #ifdef CONFIG_OF if (dev->of_node) { const struct device_node *np = dev->of_node; + u32 val; if (of_property_read_u32(np, "pll-in", &val) >= 0) { if (val > 6) { |