forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/aoa/core/gpio-feature.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Apple Onboard Audio feature call GPIO control
34 *
45 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
5
- *
6
- * GPL v2, can be found in COPYING.
76 *
87 * This file contains the GPIO control routines for
98 * direct (through feature calls) access to the GPIO
....@@ -82,6 +81,7 @@
8281 if (altname && (strcmp(audio_gpio, altname) == 0))
8382 break;
8483 }
84
+ of_node_put(gpio);
8585 /* still not found, assume not there */
8686 if (!np)
8787 return NULL;