hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Generic DVI Connector driver
34 *
45 * Copyright (C) 2013 Texas Instruments
56 * Author: Tomi Valkeinen <tomi.valkeinen@ti.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
107 */
118
129 #include <linux/i2c.h>
....@@ -254,6 +251,7 @@
254251 adapter_node = of_parse_phandle(node, "ddc-i2c-bus", 0);
255252 if (adapter_node) {
256253 adapter = of_get_i2c_adapter_by_node(adapter_node);
254
+ of_node_put(adapter_node);
257255 if (adapter == NULL) {
258256 dev_err(&pdev->dev, "failed to parse ddc-i2c-bus\n");
259257 omap_dss_put_device(ddata->in);