hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/pci/pci-ar71xx.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Atheros AR71xx PCI host controller driver
34 *
....@@ -5,10 +6,6 @@
56 * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
67 *
78 * Parts of this file are based on Atheros' 2.6.15 BSP
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License version 2 as published
11
- * by the Free Software Foundation.
129 */
1310
1411 #include <linux/resource.h>
....@@ -339,8 +336,8 @@
339336 if (!apc)
340337 return -ENOMEM;
341338
342
- res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "cfg_base");
343
- apc->cfg_base = devm_ioremap_resource(&pdev->dev, res);
339
+ apc->cfg_base = devm_platform_ioremap_resource_byname(pdev,
340
+ "cfg_base");
344341 if (IS_ERR(apc->cfg_base))
345342 return PTR_ERR(apc->cfg_base);
346343