diff options
Diffstat (limited to 'drivers/gpio/gpio-tegra.c')
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 56808b57e4..693432a8c9 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -1,19 +1,6 @@ -/* * - * Copyright (C) 2010 Erik Gilling <konkers@google.com>, Google, Inc - * Copyright (C) 2013 Lucas Stach <l.stach@pengutronix.de> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope 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. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: 2010 Erik Gilling <konkers@google.com>, Google, Inc +// SPDX-FileCopyrightText: 2013 Lucas Stach <l.stach@pengutronix.de> #include <common.h> #include <gpio.h> @@ -138,7 +125,7 @@ static struct gpio_chip tegra_gpio_chip = { .base = 0, }; -static int tegra_gpio_probe(struct device_d *dev) +static int tegra_gpio_probe(struct device *dev) { struct resource *iores; int i, j, ret; @@ -194,15 +181,12 @@ static __maybe_unused struct of_device_id tegra_gpio_dt_ids[] = { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, tegra_gpio_dt_ids); -static struct driver_d tegra_gpio_driver = { +static struct driver tegra_gpio_driver = { .name = "tegra-gpio", .of_compatible = DRV_OF_COMPAT(tegra_gpio_dt_ids), .probe = tegra_gpio_probe, }; -static int __init tegra_gpio_init(void) -{ - return platform_driver_register(&tegra_gpio_driver); -} -coredevice_initcall(tegra_gpio_init); +coredevice_platform_driver(tegra_gpio_driver); |