mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
8299d1f057
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
24 lines
921 B
Diff
24 lines
921 B
Diff
From d695c7afe2e688663041f8861ebd31c1e8275f27 Mon Sep 17 00:00:00 2001
|
|
From: Dom Cobley <popcornmix@gmail.com>
|
|
Date: Thu, 24 Jun 2021 12:00:49 +0100
|
|
Subject: [PATCH] drm/vc4: Don't create hvs_load_tracker on fkms
|
|
|
|
fkms doesn't use vc4->hvs so protect against that
|
|
|
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_debugfs.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_debugfs.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_debugfs.c
|
|
@@ -27,7 +27,7 @@ vc4_debugfs_init(struct drm_minor *minor
|
|
struct vc4_dev *vc4 = to_vc4_dev(minor->dev);
|
|
struct vc4_debugfs_info_entry *entry;
|
|
|
|
- if (!of_device_is_compatible(vc4->hvs->pdev->dev.of_node,
|
|
+ if (vc4->hvs && !of_device_is_compatible(vc4->hvs->pdev->dev.of_node,
|
|
"brcm,bcm2711-vc5"))
|
|
debugfs_create_bool("hvs_load_tracker", S_IRUGO | S_IWUSR,
|
|
minor->debugfs_root, &vc4->load_tracker_enabled);
|