diff options
author | Robin Murphy <robin.murphy@arm.com> | 2022-07-07 20:30:44 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-07-08 17:31:24 +0300 |
commit | f99e689181ea8ede795f2fcd8d658207920469dd (patch) | |
tree | c6673845f7455335844a006bf0a23a7641dfd341 /drivers/gpu | |
parent | 9550669c197510b9f994102280da7fc0ab468d05 (diff) | |
download | linux-f99e689181ea8ede795f2fcd8d658207920469dd.tar.xz |
gpu: host1x: Register context bus unconditionally
Conditional registration is a problem for other subsystems which may
unwittingly try to interact with host1x_context_device_bus_type in an
uninitialised state on non-Tegra platforms. A look under /sys/bus on a
typical system already reveals plenty of entries from enabled but
otherwise irrelevant configs, so lets keep things simple and register
our context bus unconditionally too.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/host1x/context_bus.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/host1x/context_bus.c b/drivers/gpu/host1x/context_bus.c index b0d35b2bbe89..d9421179d7b4 100644 --- a/drivers/gpu/host1x/context_bus.c +++ b/drivers/gpu/host1x/context_bus.c @@ -15,11 +15,6 @@ static int __init host1x_context_device_bus_init(void) { int err; - if (!of_machine_is_compatible("nvidia,tegra186") && - !of_machine_is_compatible("nvidia,tegra194") && - !of_machine_is_compatible("nvidia,tegra234")) - return 0; - err = bus_register(&host1x_context_device_bus_type); if (err < 0) { pr_err("bus type registration failed: %d\n", err); |