hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/sirf-audio-codec.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SiRF audio codec driver
34 *
45 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5
- *
6
- * Licensed under GPLv2 or later.
76 */
87
98 #include <linux/module.h>
....@@ -460,10 +459,6 @@
460459 int ret;
461460 struct sirf_audio_codec *sirf_audio_codec;
462461 void __iomem *base;
463
- struct resource *mem_res;
464
- const struct of_device_id *match;
465
-
466
- match = of_match_node(sirf_audio_codec_of_match, pdev->dev.of_node);
467462
468463 sirf_audio_codec = devm_kzalloc(&pdev->dev,
469464 sizeof(struct sirf_audio_codec), GFP_KERNEL);
....@@ -472,8 +467,7 @@
472467
473468 platform_set_drvdata(pdev, sirf_audio_codec);
474469
475
- mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
476
- base = devm_ioremap_resource(&pdev->dev, mem_res);
470
+ base = devm_platform_ioremap_resource(pdev, 0);
477471 if (IS_ERR(base))
478472 return PTR_ERR(base);
479473