hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/ata/ahci_tegra.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * drivers/ata/ahci_tegra.c
34 *
....@@ -5,16 +6,6 @@
56 *
67 * Author:
78 * 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
- *
189 */
1910
2011 #include <linux/ahci_platform.h>
....@@ -492,7 +483,6 @@
492483 struct tegra_ahci_priv *tegra;
493484 struct resource *res;
494485 int ret;
495
- unsigned int i;
496486
497487 hpriv = ahci_platform_get_resources(pdev, 0);
498488 if (IS_ERR(hpriv))
....@@ -552,8 +542,9 @@
552542 if (!tegra->supplies)
553543 return -ENOMEM;
554544
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);
557548
558549 ret = devm_regulator_bulk_get(&pdev->dev,
559550 tegra->soc->num_supplies,