.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) ST-Ericsson SA 2013 |
---|
3 | 4 | * |
---|
4 | 5 | * Author: Patrice Chotard <patrice.chotard@st.com> |
---|
5 | | - * License terms: GNU General Public License (GPL) version 2 |
---|
6 | 6 | * |
---|
7 | 7 | * Driver allows to use AxB5xx unused pins to be used as GPIO |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 8 | */ |
---|
13 | 9 | #include <linux/kernel.h> |
---|
14 | 10 | #include <linux/types.h> |
---|
.. | .. |
---|
18 | 14 | #include <linux/of.h> |
---|
19 | 15 | #include <linux/of_device.h> |
---|
20 | 16 | #include <linux/platform_device.h> |
---|
21 | | -#include <linux/gpio.h> |
---|
| 17 | +#include <linux/gpio/driver.h> |
---|
22 | 18 | #include <linux/irq.h> |
---|
23 | 19 | #include <linux/irqdomain.h> |
---|
24 | 20 | #include <linux/interrupt.h> |
---|
.. | .. |
---|
819 | 815 | &reserved_maps, num_maps); |
---|
820 | 816 | if (ret < 0) { |
---|
821 | 817 | pinctrl_utils_free_map(pctldev, *map, *num_maps); |
---|
| 818 | + of_node_put(np); |
---|
822 | 819 | return ret; |
---|
823 | 820 | } |
---|
824 | 821 | } |
---|