| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/ata/ahci_tegra.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: |
|---|
| 7 | 8 | * Mikko Perttunen <mperttunen@nvidia.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This software is licensed under the terms of the GNU General Public |
|---|
| 10 | | - * License version 2, as published by the Free Software Foundation, and |
|---|
| 11 | | - * may be copied, distributed, and modified under those terms. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | 9 | */ |
|---|
| 19 | 10 | |
|---|
| 20 | 11 | #include <linux/ahci_platform.h> |
|---|
| .. | .. |
|---|
| 492 | 483 | struct tegra_ahci_priv *tegra; |
|---|
| 493 | 484 | struct resource *res; |
|---|
| 494 | 485 | int ret; |
|---|
| 495 | | - unsigned int i; |
|---|
| 496 | 486 | |
|---|
| 497 | 487 | hpriv = ahci_platform_get_resources(pdev, 0); |
|---|
| 498 | 488 | if (IS_ERR(hpriv)) |
|---|
| .. | .. |
|---|
| 552 | 542 | if (!tegra->supplies) |
|---|
| 553 | 543 | return -ENOMEM; |
|---|
| 554 | 544 | |
|---|
| 555 | | - for (i = 0; i < tegra->soc->num_supplies; i++) |
|---|
| 556 | | - tegra->supplies[i].supply = tegra->soc->supply_names[i]; |
|---|
| 545 | + regulator_bulk_set_supply_names(tegra->supplies, |
|---|
| 546 | + tegra->soc->supply_names, |
|---|
| 547 | + tegra->soc->num_supplies); |
|---|
| 557 | 548 | |
|---|
| 558 | 549 | ret = devm_regulator_bulk_get(&pdev->dev, |
|---|
| 559 | 550 | tegra->soc->num_supplies, |
|---|