diff options
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
| -rw-r--r-- | drivers/gpio/gpio-tegra.c | 15 | 
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1ececf2c3282..f57bfc07ae22 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only  /*   * arch/arm/mach-tegra/gpio.c   * @@ -6,16 +7,6 @@   *   * Author:   *	Erik Gilling <[email protected]> - * - * This software is licensed under the terms of the GNU General Public - * License version 2, as published by the Free Software Foundation, and - * may be copied, distributed, and modified under those terms. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the - * GNU General Public License for more details. - *   */  #include <linux/err.h> @@ -569,7 +560,6 @@ static const struct dev_pm_ops tegra_gpio_pm_ops = {  static int tegra_gpio_probe(struct platform_device *pdev)  {  	struct tegra_gpio_info *tgi; -	struct resource *res;  	struct tegra_gpio_bank *bank;  	unsigned int gpio, i, j;  	int ret; @@ -645,8 +635,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)  		bank->tgi = tgi;  	} -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0); -	tgi->regs = devm_ioremap_resource(&pdev->dev, res); +	tgi->regs = devm_platform_ioremap_resource(pdev, 0);  	if (IS_ERR(tgi->regs))  		return PTR_ERR(tgi->regs);  |