Commit 7e0d8de4 authored by Ben Skeggs's avatar Ben Skeggs Committed by Danilo Krummrich

drm/nouveau/nvif: remove driver keep/fini

These are remnants of code long gone.  Remove them.
Signed-off-by: default avatarBen Skeggs <bskeggs@nvidia.com>
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-19-bskeggs@nvidia.com
parent ffe9f1bf
...@@ -8,13 +8,11 @@ struct nvif_driver { ...@@ -8,13 +8,11 @@ struct nvif_driver {
const char *name; const char *name;
int (*init)(const char *name, u64 device, const char *cfg, int (*init)(const char *name, u64 device, const char *cfg,
const char *dbg, void **priv); const char *dbg, void **priv);
void (*fini)(void *priv);
int (*suspend)(void *priv); int (*suspend)(void *priv);
int (*resume)(void *priv); int (*resume)(void *priv);
int (*ioctl)(void *priv, void *data, u32 size, void **hack); int (*ioctl)(void *priv, void *data, u32 size, void **hack);
void __iomem *(*map)(void *priv, u64 handle, u32 size); void __iomem *(*map)(void *priv, u64 handle, u32 size);
void (*unmap)(void *priv, void __iomem *ptr, u32 size); void (*unmap)(void *priv, void __iomem *ptr, u32 size);
bool keep;
}; };
int nvif_driver_init(const char *drv, const char *cfg, const char *dbg, int nvif_driver_init(const char *drv, const char *cfg, const char *dbg,
......
...@@ -97,5 +97,4 @@ nvif_driver_nvkm = { ...@@ -97,5 +97,4 @@ nvif_driver_nvkm = {
.ioctl = nvkm_client_ioctl, .ioctl = nvkm_client_ioctl,
.map = nvkm_client_map, .map = nvkm_client_map,
.unmap = nvkm_client_unmap, .unmap = nvkm_client_unmap,
.keep = false,
}; };
...@@ -51,11 +51,7 @@ void ...@@ -51,11 +51,7 @@ void
nvif_client_dtor(struct nvif_client *client) nvif_client_dtor(struct nvif_client *client)
{ {
nvif_object_dtor(&client->object); nvif_object_dtor(&client->object);
if (client->driver) { client->driver = NULL;
if (client->driver->fini)
client->driver->fini(client->object.priv);
client->driver = NULL;
}
} }
int int
......
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