hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/sound/soc/tegra/tegra30_ahub.c
....@@ -1,19 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * tegra30_ahub.c - Tegra30 AHUB driver
34 *
45 * Copyright (c) 2011,2012, NVIDIA CORPORATION. All rights reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #include <linux/clk.h>
....@@ -522,7 +511,7 @@
522511 const struct tegra30_ahub_soc_data *soc_data;
523512 struct reset_control *rst;
524513 int i;
525
- struct resource *res0, *res1;
514
+ struct resource *res0;
526515 void __iomem *regs_apbif, *regs_ahub;
527516 int ret = 0;
528517
....@@ -598,8 +587,7 @@
598587 }
599588 regcache_cache_only(ahub->regmap_apbif, true);
600589
601
- res1 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
602
- regs_ahub = devm_ioremap_resource(&pdev->dev, res1);
590
+ regs_ahub = devm_platform_ioremap_resource(pdev, 1);
603591 if (IS_ERR(regs_ahub))
604592 return PTR_ERR(regs_ahub);
605593