ASoC: pcm512x: Fixup warning splat
authorPeter Rosin <peda@axentia.se>
Thu, 29 Jan 2015 11:21:55 +0000 (12:21 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 29 Jan 2015 12:02:29 +0000 (12:02 +0000)
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>
sound/soc/codecs/pcm512x.c

index 51b279e3f4655ea66bc1bd32d46193d98dba4089..067d11743c310df9e03418e5b9cbcc80fd4b1835 100644 (file)
@@ -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) {