| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * tegra30_ahub.c - Tegra30 AHUB driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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/>. |
|---|
| 17 | 6 | */ |
|---|
| 18 | 7 | |
|---|
| 19 | 8 | #include <linux/clk.h> |
|---|
| .. | .. |
|---|
| 522 | 511 | const struct tegra30_ahub_soc_data *soc_data; |
|---|
| 523 | 512 | struct reset_control *rst; |
|---|
| 524 | 513 | int i; |
|---|
| 525 | | - struct resource *res0, *res1; |
|---|
| 514 | + struct resource *res0; |
|---|
| 526 | 515 | void __iomem *regs_apbif, *regs_ahub; |
|---|
| 527 | 516 | int ret = 0; |
|---|
| 528 | 517 | |
|---|
| .. | .. |
|---|
| 598 | 587 | } |
|---|
| 599 | 588 | regcache_cache_only(ahub->regmap_apbif, true); |
|---|
| 600 | 589 | |
|---|
| 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); |
|---|
| 603 | 591 | if (IS_ERR(regs_ahub)) |
|---|
| 604 | 592 | return PTR_ERR(regs_ahub); |
|---|
| 605 | 593 | |
|---|