mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 03:25:28 +07:00
drm/nouveau/ibus: use nvkm_subdev_new_()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
f02ca8425a
commit
d2bcfce7f8
@ -114,9 +114,5 @@ int
|
||||
gf100_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gf100_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gf100_ibus, device, index, pibus);
|
||||
}
|
||||
|
@ -43,9 +43,5 @@ int
|
||||
gf117_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gf117_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gf117_ibus, device, index, pibus);
|
||||
}
|
||||
|
@ -117,9 +117,5 @@ int
|
||||
gk104_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gk104_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gk104_ibus, device, index, pibus);
|
||||
}
|
||||
|
@ -81,9 +81,5 @@ int
|
||||
gk20a_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gk20a_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gk20a_ibus, device, index, pibus);
|
||||
}
|
||||
|
@ -32,9 +32,5 @@ int
|
||||
gm200_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gm200_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gm200_ibus, device, index, pibus);
|
||||
}
|
||||
|
@ -51,9 +51,5 @@ int
|
||||
gp10b_ibus_new(struct nvkm_device *device, int index,
|
||||
struct nvkm_subdev **pibus)
|
||||
{
|
||||
struct nvkm_subdev *ibus;
|
||||
if (!(ibus = *pibus = kzalloc(sizeof(*ibus), GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
nvkm_subdev_ctor(&gp10b_ibus, device, index, ibus);
|
||||
return 0;
|
||||
return nvkm_subdev_new_(&gp10b_ibus, device, index, pibus);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user