ASoC: soc-component: merge snd_soc_component_read() and snd_soc_component_read32()
[sfrench/cifs-2.6.git] / sound / soc / codecs / rt1305.c
index e27742abfa765fcc989ea068f789c7b7fcbc493a..4e9dfd235e59abbb38bc3ab3759bf692fc6e96e9 100644 (file)
@@ -411,7 +411,7 @@ static int rt1305_is_rc_clk_from_pll(struct snd_soc_dapm_widget *source,
        struct rt1305_priv *rt1305 = snd_soc_component_get_drvdata(component);
        unsigned int val;
 
-       snd_soc_component_read(component, RT1305_CLK_1, &val);
+       val = snd_soc_component_read(component, RT1305_CLK_1);
 
        if (rt1305->sysclk_src == RT1305_FS_SYS_PRE_S_PLL1 &&
                (val & RT1305_SEL_PLL_SRC_2_RCCLK))