mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
drm/nouveau/nvif: remove driver keep/fini
These are remnants of code long gone. Remove them. Signed-off-by: Ben Skeggs <bskeggs@nvidia.com> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-19-bskeggs@nvidia.com
This commit is contained in:
parent
ffe9f1bfb3
commit
7e0d8de4d3
@ -8,13 +8,11 @@ struct nvif_driver {
|
||||
const char *name;
|
||||
int (*init)(const char *name, u64 device, const char *cfg,
|
||||
const char *dbg, void **priv);
|
||||
void (*fini)(void *priv);
|
||||
int (*suspend)(void *priv);
|
||||
int (*resume)(void *priv);
|
||||
int (*ioctl)(void *priv, void *data, u32 size, void **hack);
|
||||
void __iomem *(*map)(void *priv, u64 handle, 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,
|
||||
|
@ -97,5 +97,4 @@ nvif_driver_nvkm = {
|
||||
.ioctl = nvkm_client_ioctl,
|
||||
.map = nvkm_client_map,
|
||||
.unmap = nvkm_client_unmap,
|
||||
.keep = false,
|
||||
};
|
||||
|
@ -51,11 +51,7 @@ void
|
||||
nvif_client_dtor(struct nvif_client *client)
|
||||
{
|
||||
nvif_object_dtor(&client->object);
|
||||
if (client->driver) {
|
||||
if (client->driver->fini)
|
||||
client->driver->fini(client->object.priv);
|
||||
client->driver = NULL;
|
||||
}
|
||||
client->driver = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user