.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Atheros AR71xx PCI host controller driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> |
---|
6 | 7 | * |
---|
7 | 8 | * 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. |
---|
12 | 9 | */ |
---|
13 | 10 | |
---|
14 | 11 | #include <linux/resource.h> |
---|
.. | .. |
---|
339 | 336 | if (!apc) |
---|
340 | 337 | return -ENOMEM; |
---|
341 | 338 | |
---|
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"); |
---|
344 | 341 | if (IS_ERR(apc->cfg_base)) |
---|
345 | 342 | return PTR_ERR(apc->cfg_base); |
---|
346 | 343 | |
---|