drm/tegra: Remove host1x drm_bus implementation
The DRM core can now cope with drivers that don't have an associated struct drm_bus, so the host1x implementation is no longer useful. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -28,7 +28,7 @@ static inline struct gr2d *to_gr2d(struct tegra_drm_client *client)
|
||||
static int gr2d_init(struct host1x_client *client)
|
||||
{
|
||||
struct tegra_drm_client *drm = host1x_to_drm_client(client);
|
||||
struct tegra_drm *tegra = dev_get_drvdata(client->parent);
|
||||
struct drm_device *dev = dev_get_drvdata(client->parent);
|
||||
unsigned long flags = HOST1X_SYNCPT_HAS_BASE;
|
||||
struct gr2d *gr2d = to_gr2d(drm);
|
||||
|
||||
@@ -42,17 +42,17 @@ static int gr2d_init(struct host1x_client *client)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return tegra_drm_register_client(tegra, drm);
|
||||
return tegra_drm_register_client(dev->dev_private, drm);
|
||||
}
|
||||
|
||||
static int gr2d_exit(struct host1x_client *client)
|
||||
{
|
||||
struct tegra_drm_client *drm = host1x_to_drm_client(client);
|
||||
struct tegra_drm *tegra = dev_get_drvdata(client->parent);
|
||||
struct drm_device *dev = dev_get_drvdata(client->parent);
|
||||
struct gr2d *gr2d = to_gr2d(drm);
|
||||
int err;
|
||||
|
||||
err = tegra_drm_unregister_client(tegra, drm);
|
||||
err = tegra_drm_unregister_client(dev->dev_private, drm);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user