ASoC: dwc: Fix the warnnings about JH7110 ops
PATCH 1/1 ASoC: dwc: Fix the warnnings about JH7110 ops
Add a check of CONFIG_OF before the JH7110 ops to fix the warnings that the JH7110 ops are defined but not used when CONFIG_OF is disabled.
---
Hi Mark,
This patch fixes the issue about the warning of JH7110 ops when CONFIG_OF is disabled. So add a check of CONFIG_OF before defining JH7110 ops.
Thanks,
Xingyu Wu
--- sound/soc/dwc/dwc-i2s.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/dwc/dwc-i2s.c +2 -0
@@ -729,6 +729,7 @@ static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev, } +#ifdef CONFIG_OF /* clocks initialization with master mode on JH7110 SoC */ static int jh7110_i2s_crg_master_init (struct dw_i2s_dev *dev) {
@@ -912,6 +913,7 @@ static int jh7110_i2stx0_clk_cfg(struct i2s_clk_config_data *config) return clk_set_rate(dev->clk, bclk_rate); } +#endif static int dw_i2s_probe (struct platform_device *pdev) {
Signature · 1 line
2.25.1
Quoted 8 lines · Xingyu Wu
Add a check of
CONFIG_OFbefore the JH7110 ops to fix the warnings that the JH7110 ops are defined but not used whenCONFIG_OFis disabled.Fixes 1a512d13837a ("Add I2S support for the StarFive JH7110 SoC")Reported-by kernel test robot <[email protected]>Signed-off-by Xingyu Wu <[email protected]>
Quoted 8 lines
---
Hi Mark,This patch fixes the issue about the warning of JH7110 ops when
CONFIG_OFis disabled. So add a check ofCONFIG_OFbefore defining JH7110 ops.Thanks,
Xingyu Wu
The very same fix went already in my sound.git tree, commit 8d2a0cdf5229.
thanks,
Takashi
Quoted 19 lines · Takashi Iwai
Quoted 8 lines · Xingyu Wu
Add a check of
CONFIG_OFbefore the JH7110 ops to fix the warnings that the JH7110 ops are defined but not used whenCONFIG_OFis disabled.Fixes 1a512d13837a ("Add I2S support for the StarFive JH7110 SoC")Reported-by kernel test robot <[email protected]>Signed-off-by Xingyu Wu <[email protected]>Quoted 8 lines
---
Hi Mark,This patch fixes the issue about the warning of JH7110 ops when
CONFIG_OFis disabled. So add a check ofCONFIG_OFbefore defining JH7110 ops.Thanks,
Xingyu Wu
Quoted 7 lines
The very same fix went already in my sound.git tree, commit
8d2a0cdf5229.thanks,
Takashi
Great, please ignore this patch.
Thanks,
Xingyu Wu