hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/soc/zte/zx-tdm.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ZTE's TDM driver
34 *
45 * Copyright (C) 2017 ZTE Ltd
56 *
67 * Author: Baoyou Xie <baoyou.xie@linaro.org>
7
- *
8
- * License terms: GNU General Public License (GPL) version 2
98 */
109
1110 #include <linux/clk.h>
....@@ -212,7 +211,6 @@
212211 ts_width = 1;
213212 break;
214213 default:
215
- ts_width = 0;
216214 dev_err(socdai->dev, "Unknown data format\n");
217215 return -EINVAL;
218216 }
....@@ -373,7 +371,6 @@
373371
374372 static int zx_tdm_probe(struct platform_device *pdev)
375373 {
376
- struct device *dev = &pdev->dev;
377374 struct of_phandle_args out_args;
378375 unsigned int dma_reg_offset;
379376 struct zx_tdm_info *zx_tdm;
....@@ -386,7 +383,7 @@
386383 if (!zx_tdm)
387384 return -ENOMEM;
388385
389
- zx_tdm->dev = dev;
386
+ zx_tdm->dev = &pdev->dev;
390387
391388 zx_tdm->dai_wclk = devm_clk_get(&pdev->dev, "wclk");
392389 if (IS_ERR(zx_tdm->dai_wclk)) {