Commit f99e6891 authored by Robin Murphy's avatar Robin Murphy Committed by Thierry Reding

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: default avatarRobin Murphy <robin.murphy@arm.com>
Reviewed-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 9550669c
...@@ -15,11 +15,6 @@ static int __init host1x_context_device_bus_init(void) ...@@ -15,11 +15,6 @@ static int __init host1x_context_device_bus_init(void)
{ {
int err; 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); err = bus_register(&host1x_context_device_bus_type);
if (err < 0) { if (err < 0) {
pr_err("bus type registration failed: %d\n", err); pr_err("bus type registration failed: %d\n", err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment