.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/plat-iop/gpio.c |
---|
3 | 4 | * GPIO handling for Intel IOP3xx processors. |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License as published by |
---|
9 | | - * the Free Software Foundation; either version 2 of the License, or (at |
---|
10 | | - * your option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/err.h> |
---|
.. | .. |
---|
21 | 17 | |
---|
22 | 18 | static int iop3xx_gpio_probe(struct platform_device *pdev) |
---|
23 | 19 | { |
---|
24 | | - struct resource *res; |
---|
25 | 20 | struct gpio_chip *gc; |
---|
26 | 21 | void __iomem *base; |
---|
27 | 22 | int err; |
---|
.. | .. |
---|
30 | 25 | if (!gc) |
---|
31 | 26 | return -ENOMEM; |
---|
32 | 27 | |
---|
33 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
34 | | - base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 28 | + base = devm_platform_ioremap_resource(pdev, 0); |
---|
35 | 29 | if (IS_ERR(base)) |
---|
36 | 30 | return PTR_ERR(base); |
---|
37 | 31 | |
---|
.. | .. |
---|
42 | 36 | |
---|
43 | 37 | gc->base = 0; |
---|
44 | 38 | gc->owner = THIS_MODULE; |
---|
| 39 | + gc->label = "gpio-iop"; |
---|
45 | 40 | |
---|
46 | 41 | return devm_gpiochip_add_data(&pdev->dev, gc, NULL); |
---|
47 | 42 | } |
---|