xref: /kernel/linux/linux-6.6/drivers/gpu/host1x/context_bus.c (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/gpu/host1x/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2021, NVIDIA Corporation.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#include <linux/device.h>
762306a36Sopenharmony_ci#include <linux/of.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_cistruct bus_type host1x_context_device_bus_type = {
1062306a36Sopenharmony_ci	.name = "host1x-context",
1162306a36Sopenharmony_ci};
1262306a36Sopenharmony_ciEXPORT_SYMBOL_GPL(host1x_context_device_bus_type);
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_cistatic int __init host1x_context_device_bus_init(void)
1562306a36Sopenharmony_ci{
1662306a36Sopenharmony_ci	int err;
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	err = bus_register(&host1x_context_device_bus_type);
1962306a36Sopenharmony_ci	if (err < 0) {
2062306a36Sopenharmony_ci		pr_err("bus type registration failed: %d\n", err);
2162306a36Sopenharmony_ci		return err;
2262306a36Sopenharmony_ci	}
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci	return 0;
2562306a36Sopenharmony_ci}
2662306a36Sopenharmony_cipostcore_initcall(host1x_context_device_bus_init);
27

Indexes created Thu Nov 07 10:32:03 CST 2024