hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpu/host1x/syncpt.c
....@@ -1,19 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Tegra host1x Syncpoints
34 *
45 * Copyright (c) 2010-2015, NVIDIA Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
176 */
187
198 #include <linux/module.h>
....@@ -432,7 +421,7 @@
432421 struct host1x_syncpt *host1x_syncpt_request(struct host1x_client *client,
433422 unsigned long flags)
434423 {
435
- struct host1x *host = dev_get_drvdata(client->parent->parent);
424
+ struct host1x *host = dev_get_drvdata(client->host->parent);
436425
437426 return host1x_syncpt_alloc(host, client, flags);
438427 }