forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/nomadik/pinctrl-abx500.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) ST-Ericsson SA 2013
34 *
45 * Author: Patrice Chotard <patrice.chotard@st.com>
5
- * License terms: GNU General Public License (GPL) version 2
66 *
77 * 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.
128 */
139 #include <linux/kernel.h>
1410 #include <linux/types.h>
....@@ -18,7 +14,7 @@
1814 #include <linux/of.h>
1915 #include <linux/of_device.h>
2016 #include <linux/platform_device.h>
21
-#include <linux/gpio.h>
17
+#include <linux/gpio/driver.h>
2218 #include <linux/irq.h>
2319 #include <linux/irqdomain.h>
2420 #include <linux/interrupt.h>
....@@ -819,6 +815,7 @@
819815 &reserved_maps, num_maps);
820816 if (ret < 0) {
821817 pinctrl_utils_free_map(pctldev, *map, *num_maps);
818
+ of_node_put(np);
822819 return ret;
823820 }
824821 }